Skip to content

[16.0] [IMP] stock_storage_type: Speed up potential mix exception columns initialization#1177

Closed
lmignon wants to merge 2 commits into
OCA:16.0from
acsone:16.0-imp-stoc-storage-type-upgrade-perf-lmi
Closed

[16.0] [IMP] stock_storage_type: Speed up potential mix exception columns initialization#1177
lmignon wants to merge 2 commits into
OCA:16.0from
acsone:16.0-imp-stoc-storage-type-upgrade-perf-lmi

Conversation

@lmignon

@lmignon lmignon commented Jun 9, 2026

Copy link
Copy Markdown

Before this commit, the initialization of the potential mix exception columns
on stock_location was done using the ORM, which was very slow on large databases.
This commit add an SQL query to initialize those columns in a more efficient way.

rousseldenis and others added 2 commits June 9, 2026 14:54
Don't retrieve unneeded values for locations that should not compute
'location_will_contain_product_ids'.
…itialization

Before this commit, the initialization of the potential mix exception columns
on stock_location was done using the ORM, which was very slow on large databases.
This commit add an SQL query to initialize those columns in a more efficient way.
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Hi @rousseldenis, @jbaudoux,
some modules you are maintaining are being modified, check this out!

@OCA-git-bot OCA-git-bot added series:16.0 mod:stock_storage_type Module stock_storage_type labels Jun 9, 2026
@lmignon

lmignon commented Jun 9, 2026

Copy link
Copy Markdown
Author

@lmignon lmignon closed this Jun 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:stock_storage_type Module stock_storage_type series:16.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants