Reputation: 6591
am using fts3 tabele for searching my problem is, I have invoking search in textWatch listener of the EditText, when I type 'a' it start search for 'a', then I type 'b' it search for 'ab' only after the result of 'a' comes, how can I solve this issue, that means when I type 'b', it stop searching of 'a' and start searching of 'ab' . Currently my search slow because of this issue, please help me.
Upvotes: 1
Views: 529
Reputation: 8142
There are few things you can try to optimize your query.
Upvotes: 1
Reputation: 30974
Is the column you are searching in indexed? Adding an index will make a huge difference.
Otherwise/in addition, you should enable profiling the code and look at it with traceview
to better understand where the time is really spent.
Upvotes: 0