Skip to content

Loading…

DDC-2921: [GH-912] Avoid PersistentCollection::isEmpty() to fully load the collection. #3681

Closed
doctrinebot opened this Issue · 2 comments

2 participants

@doctrinebot

Jira issue originally created by user @doctrinebot:

This issue is created automatically through a Github pull request on behalf of BenMorel:

Url: #912

Message:

This is a suggested simple performance improvement for PersistentCollection.

At the moment, isEmpty() always fully loads the collection. By changing the code to rely on count(), which makes advantage of extra lazy fetch when the collection is not loaded, this saves the overhead of loading the entire collection when one just wants to check whether the collection is empty.

@doctrinebot

Comment created by @doctrinebot:

A related Github Pull-Request [GH-912] was closed:
#912

@doctrinebot

Issue was closed with resolution "Fixed"

@beberlei beberlei was assigned by doctrinebot
@doctrinebot doctrinebot added this to the 2.5 milestone
@doctrinebot doctrinebot closed this
@doctrinebot doctrinebot added the Bug label
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.