Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add yieldEntities wrapper for entity mapping in QBMapper #45947

Merged
merged 1 commit into from
Jun 27, 2024

Conversation

juliushaertl
Copy link
Member

@juliushaertl juliushaertl commented Jun 18, 2024

This could be a nice small addition to the QBMapper API to allow apps iterating over results in a more memory efficient way that does not need to keep the full result set in memory.

Checklist

@ChristophWurst ChristophWurst added the pending documentation This pull request needs an associated documentation update label Jun 19, 2024
@juliushaertl juliushaertl force-pushed the feat/qbmapper-yield-entities branch 2 times, most recently from d57ec0d to 7324687 Compare June 20, 2024 14:58
Signed-off-by: Julius Härtl <jus@bitgrid.net>
@nickvergessen nickvergessen merged commit 1b49c86 into master Jun 27, 2024
165 checks passed
@nickvergessen nickvergessen deleted the feat/qbmapper-yield-entities branch June 27, 2024 12:48
* @throws Exception
* @since 30.0.0
*/
protected function yieldEntities(IQueryBuilder $query): Generator {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

juliushaertl added a commit to nextcloud/documentation that referenced this pull request Jul 19, 2024
nextcloud/server#45947

Signed-off-by: Julius Härtl <jus@bitgrid.net>
@juliushaertl juliushaertl removed the pending documentation This pull request needs an associated documentation update label Jul 22, 2024
@blizzz blizzz mentioned this pull request Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants