I have a simple query that is way too slow considering my needs. The query is:
SELECT a FROM tableA WHERE b IN ("SOME_IDS_LIST") ORDER BY a
tableA has about 300 000 rows and contains index (a,b). The longer "SOME_IDS_LIST" list the slower the query. Is there any way of speeding up this kind of query? I was looking for some generic solution over the internet but with no luck.