Is there any limit for a no. of value inside IN
function of MySQL
, Currently I am building social network and I am trying to fetch all feeds from people who person follow.
But my concern here is, what if a user has 1000 or 10,000 following. Can IN
function inside MySQL
take those 10,000 inside IN
and get the value? Also, will it have speed impact?
E.g, SELECT * from feeds where ID in(1,2,3,4,5,6,7,....,1000,...10000)
Thanks