In my Android application, I need to get 50,000 records in the database (text) and compare them with the value when the action (c onCreate()) begins . I do this in the simplest way: I get the whole table from db to cursor. However, this path is too backward. Are there other ways to do this more efficiently?
Edit: The application is a "scrabble solver", so I do not use the sentence WHEREin my query (take all the data and compare it with a combination of input letters). At first I used a large table containing entire possible words. Now I use 26 tables. This has reduced latency, and I am making database calls in a stream, which also solves a lot of problems. This is still a bit laggy, but much better.
source
share