Quantcast
Channel: Active questions tagged redis+java - Stack Overflow
Viewing all articles
Browse latest Browse all 2203

slow select in (...) (springdata jpa in mysql )

$
0
0

I have a table "A", "A" has a Column AreaId, When I select * from "A", I wanna show results where AreaId in my account.Other, I hava a table "B",it means I hava some AreaIds, It possible thousands or hundreds.So, When I select from A , I will select * from A where areaId in (1,2,3,4,5,6,7.....1000),it is too slowHow can I solve this, Thank you

Now I use in(.....) and redis, but it too slow


Viewing all articles
Browse latest Browse all 2203

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>