I need the latest of each. Limit obviously does not help as it applies to the whole result set. Not using any sort of limit is unviable as I would get too many events
Maybe each app can link to it's latest release?
Yes they are linked already. My request is: Give me the latest release for each one of these app ids. In SQL that can be done with a self-join I think
So you load apps and then latest releases by id?
I need to check for updates: for (com.app1, com.app2, com.app3) give me the latest 1063 events for each. I could use one query for each, but since a user might be checking for 50-100 apps I don't want to do that.