-
Notifications
You must be signed in to change notification settings - Fork 980
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
store: Avoid 'too many bind params' error in FindDerivedEntityQuery
The FindDerivedQuery would contain a clause `id not in (<lots of values>)` where each entry in the list is a separate bind variable. If we have more than 65k derived entities already loaded into memory, this would require more bind variables than what Postgres supports. With this change, we pass those values as one array and therefore only need one bind variable.
- Loading branch information
Showing
2 changed files
with
11 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters