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
[11.0][Poor Performance] when open a product with 5000 variantes #22783
Comments
Log all postgreSQL queries and analyse them with pgBadger. Most sql queries must run in less than 100ms. Add indices if necessary fir your use case. |
Please find the |
https://www.odoo.com/slides/slide/tips-to-fine-tune-postgresql-to-boost-performances-542 Activate the sql logs on PostgreSQL |
I have made some investigation on this issues : And the worst compute are :
Analyse:
Bug performance : useless compute of
This explain why the creation of variante is so long when there are lot of existing variante : #23108 |
For the record, this one might be solved by 10412d3. At least it's worth a re-test on an up-to-date 11.0. |
This perf investigation is interesting, but I don't think having 5000 variants for the same product makes any kind of sense, so please don't expect the system to behave nominally. Variants were simply not designed to be used for this, and won't be. Imagine a shirt store with only one product template, and variants for every possible design, size and color combination. Clearly, each design should be a different product, and variants based only on size/color. Maybe a rule of thumb would be to think of an e-commerce. Visitors are expected to find the basic product by navigating the store, and when they reach it, then they should select the variant through a simple UI. They cannot be expected to differentiate through thousands of variants. If a product attribute has more than a few values (e.g. arbitrary dimensions), it should be configure NOT to create variants - that should be a make-to-order attribute. |
@odony for Sure a product with 5000 variants is not commun, but 50 product with 100 variants each is more likely, and the time to compute will be the same to show the kanban view. This extreme case reveals that some stuff are not optimized. |
@alnslang |
@pedrobaeza @fmdl The point of the problem is not the number of product variants, but the fact that I only look at one of the variants in the Form View, and why I also calculate the properties of the other variants. |
@sum1201 |
@moylop260 |
@Yenthe666 @xmo-odoo and @nseinlet |
@sum1201 I'm just a contributor so I cannot do much more than look, label, ping the right people and try to help in general. This one has to be handled by somebody at Odoo itself. If you have an enterprise license you can also report it through odoo.com/help but there is nothing more I can do on this specific ticket, sorry! |
@sum1201 Open a ticket through odoo.com/help with the enterprise contract, and I'll look at it more deeper. |
@nseinlet I have open a ticket : 1865111 |
👋 Any new updates here? |
Hi, |
Impacted versions:
11.0 and maybe other
Steps to reproduce:
Why:
The text was updated successfully, but these errors were encountered: