-
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.
Implement batch processing in mosaic cache invalidation
This commit introduces a mechanism to handle large sets of mosaic cache keys by processing them in batches. When the set size reaches a predefined maximum (MAX_SET_SIZE), the current batch is processed, and the set is cleared to make room for new entries. This change ensures that the cache invalidation job can handle large volumes of data without running into memory constraints. Additionally, the commit includes a final call to process any remaining keys after iterating through all mosaic tiles. This improvement optimizes the cache invalidation process, making it more efficient and reliable.
- Loading branch information
Showing
1 changed file
with
44 additions
and
32 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