Repository navigation
Add a pin to Clear Cache that clears the cache before every query - #165
Merged
Merged
Conversation
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
For benchmarking, one wants every query to run on a cold cache without pressing `Clear Cache` by hand each time. A pin button next to `Clear Cache` latches that: while pinned, the cache is cleared and the clear is awaited before each query starts. The state is a general setting (`clearCacheBeforeExecute`), persisted in local storage, and an indicator on `Execute` shows when it is active. Results of a query that ran right after a successful clear are marked with a "Cold run" badge. `clearCache` now resolves after the backend has answered, which also fixes the re-run in the analysis view racing the clear against the query. It accepts a `quiet` parameter to suppress its toasts.
IoannisNezis
force-pushed
the
clear-cache-lock
branch
from
November 3, 2026 13:14
fd235ca to
cfc4790
Compare
Previously the badge was only updated on success, so a failed or canceled query after a cold run kept showing it.
With the `Clear Cache` pin set, a cancel during the clear fired before executeQuery registered its cancel listener, so the query ran anyway.
…ache With the `Clear Cache` pin set and no endpoint configured, the warning from the pre-query clear showed up next to the query's own error with the same message.
Toggles the `Clear Cache` pin from the command palette.
Clear Cache that clears the cache before every queryClear Cache that clears the cache before every query
IoannisNezis
added a commit
that referenced
this pull request
Nov 3, 2026
* main: (61 commits) FIX: show dataset URL even if the endpoint is unreachable Add a pin to `Clear Cache` that clears the cache before every query (#165) DEP: update qlue-ls to 3.13.1 chore(deps): update dependency vite to v8.3.4 chore(deps): update ghcr.io/astral-sh/uv docker tag to v0.13.0 chore(deps): update astral-sh/setup-uv action to v10.3.0 fix(deps): update dependency fastapi to v0.143.0 chore(deps): update dependency @playwright/test to v1.64.0 chore(deps): update python to v3.14.8 chore(deps): update ghcr.io/astral-sh/uv docker tag to v0.12.22 chore(deps): update dependency @types/node to v25.9.9 FIX: keep the template editor's model alive on click FIX: keep the template editor's model alive on click MAINT: add prefix default for wikidata statement fix(deps): update dependency fastapi to v0.142.2 ENH: make numbers in profile more readable FIX: only show the grab cursor on the query execution tree canvas ENH: show the name of the analysed query in the analysis modal ENH: fill in the total time as planning plus execution time ENH: show the query planning info in a fold-out of the planning time stat ...
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When benchmarking or investigating queries, one often wants every query to run on a cold cache, which so far meant pressing
Clear Cacheby hand before eachExecute. This change adds a small pin button right ofClear Cache. While pinned, the cache is cleared before every query (from the button, Ctrl+Enter, an?execlink, or the re-run in the analysis view), and the query only starts once the clear request has finished. If the clear fails, the query still runs.clearCacheBeforeExecute), with a checkbox in the settings panel, and is kept per browser in local storage.Clear Cachecell is tinted and a small indicator is shown onExecute.Clear Cacheitself still works as a one-off click, and atoggleClearCacheBeforeQuerycommand is registered for the command palette.Along the way,
clearCachenow resolves after the backend has answered. Before, the "re-run with cleared cache" action of the analysis view fired the query without waiting, so it could still hit the cache.clearCachealso accepts aquietparameter (clearCache quietin the command prompt) that suppresses its toasts; the pre-query clear uses it.