SQLite has a limit of 999 variable substitutions. If we have more
changes than that in the database, the getChangeIDs call won't work.
This version of the method was written before change expiration.
Now, changes in the local database are much more likely to be active,
so a query is less likely to return useless data. However, in a
busy system, we are likely to see more than 999 local changes.
One way to correct this involves chunking the query, but then we will
essentially be asking SQLite to run a full table scan for each chunk.
Instead, let's ask it to do a single full table scan, return all of
the change ids, and have python filter them.
Change-Id: Ia5a6675522846a16526b11cc2d62d16f21bf59b7
Co-Authored-By: Zane Bitter <zbitter@redhat.com>