-
Notifications
You must be signed in to change notification settings - Fork 21
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
m0000800_alter_product_version_range_scheme is way too slow #1142
Comments
the problem is that that sql query is getting executed for each row
is likely to be a lot better performing. |
That query is not valid in postgres
I played a bit with its variations, like
But from the analysis it doesn't look it helps much. The bottleneck is updating 18M rows in the end. |
ah right, sorry I prob was writing psuedo psql ... let me write and test something ... |
Just FYI, the query from the previous comment, executed for me locally in 38min |
Having the standard data imported,
m0000800_alter_product_version_range_scheme
fails to complete withing 2 days.The problem is the update statement, which has to process the following two tables:
The statement is:
The text was updated successfully, but these errors were encountered: