I try to search through the questions to see if there is any similar thread to my problem but so far haven't found any. Here is my problem is: I have a list of products which contains ~10,000 items stored in a SQLite db. In my app, I need to search for any item from this list. I have a few options:
Is there any better way to do this? Thanks
Your second option is the best way. Its similar to how you get a list of recommended search results while you type in your query. For you, assuming your using asynctask to query your db you can have a proper loading message signaled by onProgressUpdate
Can you categorize the items? So that you can use use spinner to select the category, and use AutoCompleteTextView to type and select items.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.