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

fix Oracle query limit compliance #1804

Merged
merged 1 commit into from
Dec 21, 2021
Merged

Conversation

to-kn
Copy link
Contributor

@to-kn to-kn commented Dec 7, 2021

these changes fixed the Problems with #1702 for me

Copy link
Contributor

@fschrempf fschrempf left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution! I think it would be better to add the chunking directly in getFoldersForGroups() instead of implementing it in multiple places. And a comment with the reason for the chunking would be nice.

@fschrempf
Copy link
Contributor

You can have a look at nextcloud/server#27187 or nextcloud/mail#4947 for other places where this was fixed. I also opened an issue (#1805) to check any other queries that might hit the limitations.

@to-kn
Copy link
Contributor Author

to-kn commented Dec 17, 2021

HI @fschrempf do you mean like that? To be honest i did not had the possibility to validate the fix like that...

Copy link
Contributor

@fschrempf fschrempf left a comment

Choose a reason for hiding this comment

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

The code looks good to me. If you could add the comment I was asking for and squash the two commits into a single one, I think we are good to go.

@fschrempf
Copy link
Contributor

And we nee to find out why the unit tests fail. Might not be related to this PR, I haven't checked. Maybe rebasing already does the trick.

@to-kn
Copy link
Contributor Author

to-kn commented Dec 20, 2021

@fschrempf should be good

Copy link
Member

@CarlSchwan CarlSchwan left a comment

Choose a reason for hiding this comment

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

Code looks fine, let's wait for the tests results

lib/Folder/FolderManager.php Outdated Show resolved Hide resolved
lib/Folder/FolderManager.php Outdated Show resolved Hide resolved
Copy link
Member

@CarlSchwan CarlSchwan left a comment

Choose a reason for hiding this comment

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

Tests are still failing and it seems to be directly related to this PR

@to-kn
Copy link
Contributor Author

to-kn commented Dec 20, 2021

@CarlSchwan thank you for your feed-back. I did not manage to get the Tests running locally so i was not able to check it beforehand...

Signed-off-by: Tobias Knipping <knipping@tk-schulsoftware.de>
@to-kn
Copy link
Contributor Author

to-kn commented Dec 20, 2021

@CarlSchwan since tests are running now, i sqashed the commits again. Let me know if anything is missing

Copy link
Member

@CarlSchwan CarlSchwan left a comment

Choose a reason for hiding this comment

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

LGTM

@CarlSchwan CarlSchwan merged commit 694e1b3 into nextcloud:master Dec 21, 2021
@CarlSchwan
Copy link
Member

/backport to stable23

@CarlSchwan
Copy link
Member

/backport to stable22

@CarlSchwan
Copy link
Member

/backport to stable21

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.

NC22 Doctrine\DBAL\Query\QueryException: More than 1000 expressions in a list are not allowed on Oracle
3 participants