[DDC-2378] Efficient count using Selectable Created: 28/Mar/13 Updated: 16/May/14 Resolved: 28/Mar/13
|Project:||Doctrine 2 - ORM|
|Reporter:||Michaël Gallego||Assignee:||Marco Pivetta|
I'm currently using intensively the Criteria and Selectable interfaces to provide a generic REST library.
However, I've found a problem when I want to paginate data:
The problem is that EntityRepository returns an ArrayCollection and, hence, load the whole collection which is inefficient. It would be nice if it could return a PersistentCollection instead with lazy-load and perform an optimized count.
|Comment by Christophe Coevoet [ 28/Mar/13 ]|
|Comment by Doctrine Bot [ 16/May/14 ]|
A related Github Pull-Request [GH-882] was closed: