Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Performance improvements on package generation
Right now, when Solidus tries to create the packages on Coordinator, it iterates over each one of the active stock locations and skip those without the requested variants in stock. Let's suppose we have 100 different stock locations (which is my case) and the current user has 5 items on his cart. Once it tries to create the packages it triggers 500 different queries to the database. Here I try to address this issue, iterating over just the stock locations with the requested variants in stock.
- Loading branch information