In my app I am facing a performance problem when loading from DB. I have a list using RecylerView
and a cursor for data. Once the number of records goes beyond 1000, the list becomes too slow to load or for any operation. The query uses this WHERE clause: COL1 = something AND (COL2 LIKE something OR col3 LIKE something OR col4 LIKE something) AND col5 is NOT NULL
What would be the ideal way to define an index in this case to get better performance? Also will reducing the number of columns in the query result improve the performance?