Skip to content

cache: more efficient pruning#4139

Closed
ronag wants to merge 1 commit into
mainfrom
prune
Closed

cache: more efficient pruning#4139
ronag wants to merge 1 commit into
mainfrom
prune

Conversation

@ronag
Copy link
Copy Markdown
Member

@ronag ronag commented Apr 2, 2025

Reduce transaction lock times.

I suspect there is a non-trivial overhead to countEntriesQuery.

Refs: #4124

@ronag ronag requested a review from mcollina April 2, 2025 14:09
Reduce transaction lock times.

Refs: #4124
@ronag
Copy link
Copy Markdown
Member Author

ronag commented Apr 2, 2025

Hmmm... offset is not a good solution either...

FROM cacheInterceptorV${VERSION}
ORDER BY cachedAt DESC
LIMIT ?
OFFSET ${this.#maxCount}
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is also problematic...

@ronag ronag closed this Apr 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant