Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hii,
today m here to ask the question ...
my question :-
*i have one Database (.MDB)
items in database (90000) ,
each item is 50 to 250 (char) long ...

* one having textbox polluted with 8000(character) with no space in this long string ...
like :- ABCDEFGHIJKL.....z...etc so on .....

problem facing :-
While on search for a substring in a textbox.text compare with database item ,it took long to match 20 sec to finish ...

wat i want :-
i want to reduce this tym from 8 sec to 1 sec or .200ms

i dont know where i am going wrong ...

need a good guidance to fast this search ...

thnxxs in advance ..
_______________________________
dim line as string = textbox1.text
 
using cmd as new oledb.oledbcommand ("SELECT * from Table1 WHERE Instr('" & Textbox1.text & "', [column1] ) ",connstring)
 
cmd.parameters. addwithvalue("",Line)
 
if cInt(cmd.executescalar()) <> 0 then 
something ....  
else 
something...
end if 
<\pre>
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900