-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove wildcard searching in redis scheduler
Redis does not use a b-tree under the hood, instead it aggregates the key space, then does a union on all documents in the database. Thus, redis has a limit on how many items are unioned (MAXEXPANSIONS); by default redis has this set to 200. This limitation causes issues if there ever becomes more than 200 scheduled tasks, so we get around this by making the sort and filter index separate. Now we search explicitly for exact match state, then sort on a different key.
- Loading branch information
Showing
4 changed files
with
78 additions
and
53 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
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