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

[8.x] Implement lazyById in descending order #39646

Merged
merged 6 commits into from
Nov 18, 2021

Conversation

moshe-autoleadstar
Copy link
Contributor

Sometimes, when dealing with a lot of data, you need to lazily loop through models.
However, often, one would care more about the "newer" objects being processed first.

$query->lazyByIdDesc()

@nunomaduro nunomaduro changed the title Implement lazyById in descending order [8.x] Implement lazyById in descending order Nov 17, 2021
@taylorotwell taylorotwell merged commit bee1299 into laravel:8.x Nov 18, 2021
Copy link

@ronapelbaum2 ronapelbaum2 left a comment

Choose a reason for hiding this comment

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

💪

@GrahamCampbell
Copy link
Member

Don't we need additional tests here to ensure it is actually lazy? cc @JosephSilber

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants