-
-
Notifications
You must be signed in to change notification settings - Fork 48
Closed
Description
Because of the internal index in PSRSimpleCache every single time we want to add something into the cache, we need to perform following operations:
- check if an index exists in the cache
- read index from the cache (if it exists)
- merge that index with new rows
- write that index into the cache
so only after that, we can put actual rows into the cache. The biggest bottleneck is here:
All the above operations on cache will be executed at least as many times as many rows we have. So 10k rows will generate around 40k hits to cache storage. This problem does not exists with the LocalFIlesystemCache because instead of checking if the index exists, it's simply trying to create or open it and then just appending new id at the end of it.
Metadata
Metadata
Assignees
Labels
No labels