Skip to content

Full Stats fetching - #659

Open
schlick7 wants to merge 6 commits into
LuteOrg:masterfrom
schlick7:fullstats
Open

Full Stats fetching#659
schlick7 wants to merge 6 commits into
LuteOrg:masterfrom
schlick7:fullstats

Conversation

@schlick7

Copy link
Copy Markdown
Contributor

I made these changes for my LuteForMobile. There is no equivalent changes to actually use these on the current Lute webpage. This allows the fetch to bypass the need to set books as stale and sample_calc_size setting.

Expose independent recalculation controls on the book stats endpoint.

  • Keep the default /book/table_stats/<id> behavior.
  • Support ?force_recalc=true to recalculate sampled stats in a single call.
  • Support ?full_book=true to recalculate full-book stats in a single call.

This makes it possible to:

  • fetch the existing cached stats without changing behavior
  • force a fresh sampled recalculation when needed
  • force a full-book recalculation when needed

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