Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve Spree::Order::NumberGenerator speed
When generating a number, if it already exists, the length of numbers will be increased if over half of the possible options are already taken. This query is very expensive when having millions of records. Upon multiple number collisions, this SQL becomes a bottleneck. Co-authored-by: Sung <[email protected]>
- Loading branch information