-
Notifications
You must be signed in to change notification settings - Fork 418
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
SQL query too big with reactions #8287
Comments
What this code do: Fetch all reactions of a message. The problem occur when we have more than 1000 reactions with Oracle database because Oracle can't do a query with more than 1000 parameters. The method that fetch the comments by id is on de server repository, than, maybe the solution of this issue will be at server, not here in Talk repository. Possible solutions that I think to solve this problem:
@nickvergessen did you have any other suggestion or preference by any of the above approaches? |
Yes, similarly to this case: |
But don't use 1000 as chunk size, but maybe something like 500 |
We have a problem: the sort with multiple values using date and after this the ID of comment that now we do by SQL. |
Maybe isn't a problem if the chunks already was sorted by id. |
Split hte comments ids by chunks to prevent error with Oracle database that can't do a query with more than 1000 parameters. nextcloud/spreed#8287 Signed-off-by: Vitor Mattos <vitor@php.rio>
Split the comments ids by chunks to prevent error with Oracle database that can't do a query with more than 1000 parameters. nextcloud/spreed#8287 Signed-off-by: Vitor Mattos <vitor@php.rio>
The text was updated successfully, but these errors were encountered: