Skip to content

Fire a single audit query per query-control change - #3104

Merged
ramonsmits merged 1 commit into
masterfrom
ramon/audit-single-refresh
Sep 4, 2026
Merged

Fire a single audit query per query-control change#3104
ramonsmits merged 1 commit into
masterfrom
ramon/audit-single-refresh

Conversation

@ramonsmits

Copy link
Copy Markdown
Member

A single control change on the All Messages view could fire the same query up to three times: the controls watcher called the fetch after pushing the new query to the router, the route watcher fetched again in response to that push, and the controls watcher also watched the route so it re-triggered itself once more. On slow audit instances the duplicates pile up server-side — they were observed running concurrently for minutes in customer RavenDB debug packages.

The route is now the single source of truth: control changes only push to the router, and only a route change triggers the fetch. The new regression tests fail against the previous implementation.

Related:

A single control change on the All Messages view could fire the same
query up to three times: the controls watcher called the fetch after
pushing the new query to the router, the route watcher fetched again in
response to that push, and the controls watcher also watched the route
so it re-triggered itself once more. On slow audit instances the
duplicates pile up server-side and were observed running concurrently
for minutes in customer RavenDB debug packages.

The route is now the single source of truth: control changes only push
to the router, and only a route change triggers the fetch.
@ramonsmits
ramonsmits merged commit d8759d8 into master Sep 4, 2026
5 checks passed
@ramonsmits
ramonsmits deleted the ramon/audit-single-refresh branch September 4, 2026 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Improvement Improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants