mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
Querying large number of entities via primary key criteria #5543
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @yasminalzokari on GitHub (May 19, 2017).
Originally assigned to: @Ocramius on GitHub.
We have a problem querying a large number (i.e. more than 1000) of entities via criteria on their primary key which fields due to expanding list parameters with more than 1000 expressions, i.e. it yields the Oracle error
We would have expected that DBAL takes care of this, but it looks like this is considered to much of a corner case. Hence we tried too implement a workaround on the repository level by issuing several calls to the underlying repositories
findBymethod and merging their results after chunking up the list parameters, e.g.:Do think that something like this could become part of the upstream implementation?
@Ocramius commented on GitHub (May 20, 2017):
Closing as duplicate of https://github.com/doctrine/dbal/pull/2699