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

[5.2] Avoid chunkById to duplicate orders clause with the same column #13604

Merged
merged 5 commits into from
May 19, 2016
Merged

[5.2] Avoid chunkById to duplicate orders clause with the same column #13604

merged 5 commits into from
May 19, 2016

Conversation

nunomazer
Copy link
Contributor

@nunomazer nunomazer commented May 18, 2016

When executing the method chunkById to work with a massive importation from a legacy database, each time the query where called to be build the ordersBy got duplicated.

This PR tests if the ordersBy clause already exists for each column, if so remove it to compile right the query.

@GrahamCampbell GrahamCampbell changed the title Avoid chunkById to duplicate orders clause with the same column [5.2] Avoid chunkById to duplicate orders clause with the same column May 18, 2016
@taylorotwell
Copy link
Member

Needs full description.

@taylorotwell taylorotwell merged commit 001cffc into laravel:5.2 May 19, 2016
@nunomazer
Copy link
Contributor Author

Sorry, done !

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.

2 participants