Skip to content
Snippets Groups Projects
Commit 44c70781 authored by Nicolas Martinelli's avatar Nicolas Martinelli
Browse files

[FIX] website_sale: add index to website_sequence

On a DB with 2M+ products, the computation of the
`_default_website_sequence` [1] takes several seconds. In case of a
product creation in batch, it can negatively affect the whole
server performance.

Adding an index solves the problem.

[1] https://github.com/odoo/odoo/blob/1b9c7fecc5b4031c5d7b9bbe4f26e1e510063d12/addons/website_sale/models/product_template.py#L368



closes odoo/odoo#135030

Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
parent ad6685f8
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment