forked from area17/twill
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes area17#600: Improve tree reorder algorithm for nested modules
The idea here was to reduce the number of times the script needs to interact with the database. With this new code, there should be fewer `save()`, `saveAsRoot()`, and `self::find()` calls happening. The trade-off is that there is now an `all()` call, which could cause issues if there is truly a massive amount of items (thousands). But for most use-cases, this new algorithm should behave better than the old one when there is a middling number of items (hundreds).
- Loading branch information
1 parent
12acbd6
commit c00bf01
Showing
2 changed files
with
67 additions
and
64 deletions.
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