-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
1 parent
1fe96cc
commit 4cce19a
Showing
2 changed files
with
29 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters