Which feels really wrong because it reads as "for every session id make one query to the database", which seems really ineffecient (but IDK how it works under the hood so maybe not).
- Is above the correct way to do an "in" query? - Is this making one DB query per record?