Skip to content

docs(analytics): note get_analytics reads without a consistent snapshot#557

Open
dawsontoth wants to merge 2 commits into
mainfrom
docs/get-analytics-read-snapshot
Open

docs(analytics): note get_analytics reads without a consistent snapshot#557
dawsontoth wants to merge 2 commits into
mainfrom
docs/get-analytics-read-snapshot

Conversation

@dawsontoth

Copy link
Copy Markdown
Contributor

What

Adds a Read behavior note to the get_analytics operation reference explaining that these queries read against the latest committed data without holding a consistent read snapshot open for the duration of the scan.

Why

Companion to HarperFast/harper#35, which makes get_analytics scans run with snapshots disabled (RocksDB) so a long-running analytics query doesn't pin a snapshot that blocks storage compaction. The trade-off — results aren't guaranteed to reflect a single point in time — is worth calling out for users.

Note: snapshot is set internally by Harper for get_analytics; it is not a new user-facing request parameter, so this is a behavioral note rather than a new parameter row.

🤖 Generated with Claude Code

get_analytics queries now read against the latest committed data without
holding a read snapshot open for the duration of the scan, so long-running
analytics queries stay easier on the rest of the system (no pinned snapshot
blocking compaction). Documents the behavior and its consistency trade-off.

Implements the docs follow-up for HarperFast/harper#35.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request adds a new 'Read behavior' section to the get_analytics documentation, explaining that queries run against the latest committed data without holding a consistent read snapshot. The reviewer suggested a phrasing improvement to use more professional and precise language in the documentation.

Comment thread reference/analytics/operations.md Outdated
@github-actions github-actions Bot temporarily deployed to pr-557 June 30, 2026 20:19 Inactive
@github-actions

Copy link
Copy Markdown

🚀 Preview Deployment

Your preview deployment is ready!

🔗 Preview URL: https://preview.harper-documentation.harperfabric.com/pr-557

This preview will update automatically when you push new commits.

Address review feedback: use more precise phrasing ("minimizes the impact
of...") instead of "keeps ... easier on the rest of the system".

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

🚀 Preview Deployment

Your preview deployment is ready!

🔗 Preview URL: https://preview.harper-documentation.harperfabric.com/pr-557

This preview will update automatically when you push new commits.

@kriszyp kriszyp left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Approving — accurate note that get_analytics reads without a consistent snapshot; correctly scoped and placed, matches the harper#35 behavior. Thanks @dawsontoth!

— 🤖 KrAIs (Kris's review assistant)

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.

3 participants