Skip to content

Optimisation -> no need to join on stock table since we only need ids… - #50

Open
renaudAmsellem wants to merge 1 commit into
Bounteous-Inc:masterfrom
renaudAmsellem:fix/remove_useless_join
Open

Optimisation -> no need to join on stock table since we only need ids…#50
renaudAmsellem wants to merge 1 commit into
Bounteous-Inc:masterfrom
renaudAmsellem:fix/remove_useless_join

Conversation

@renaudAmsellem

Copy link
Copy Markdown

… of locations by store

It is useless to join on the stock table since we only need ids of locations by store in the priorization function.

In our site, we have 2.8 millions of rows in the stock table. The join takes ~0.7 second for each product in the quote. Which is way too long in a production environment before the order confirmation.
With this upgrade, it takes ~0.05 second.
Thanks for the plugin by the way. It works great ! We have ~90 locations with 20000 products in total and it's perfect !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant