Skip to content

RDBC-1033 Add GetEssentialStatisticsOperation and EssentialDatabaseStatistics#275

Open
redknightlois wants to merge 1 commit intoravendb:v7.2from
redknightlois:RDBC-1033
Open

RDBC-1033 Add GetEssentialStatisticsOperation and EssentialDatabaseStatistics#275
redknightlois wants to merge 1 commit intoravendb:v7.2from
redknightlois:RDBC-1033

Conversation

@redknightlois
Copy link
Member

Issue link

https://issues.hibernatingrhinos.com/issue/RDBC-1033

Additional description

RDBC-1033 – Adds GetEssentialStatisticsOperation and EssentialDatabaseStatistics, a lightweight alternative to the full GetStatisticsOperation. Returns key database metrics — document counts, index counts, attachment counts, tombstones, and a summary per index — without the heavier payload of the full statistics endpoint (/stats/essential). All new types are exported from the top-level ravendb package.

Type of change

  • Bug fix
  • Regression bug fix
  • Optimization
  • New feature

How risky is the change?

  • Low
  • Moderate
  • High
  • Not relevant

Backward compatibility

  • Non breaking change
  • Ensured. Please explain how has it been implemented?
  • Breaking change
  • Not relevant

Is it platform specific issue?

  • Yes. Please list the affected platforms.
  • No

Documentation update

  • This change requires a documentation update. Please mark the issue on YouTrack using Documentation Required tag.
  • No documentation update is needed

Testing by Contributor

  • Tests have been added that prove the fix is effective or that the feature works
  • Internal classes added to the test class (e.g. entity or index definition classes) have the lowest possible access modifier (preferable private)
  • It has been verified by manual testing
  • Existing tests verify the correct behavior

Testing by RavenDB QA team

  • This change requires a special QA testing due to possible performance or resources usage implications (CPU, memory, IO). Please mark the issue on YouTrack using QA Required tag.
  • No special testing by RavenDB QA team is needed

Is there any existing behavior change of other features due to this change?

  • Yes. Please list the affected features/subsystems and provide appropriate explanation
  • No

UI work

  • It requires further work in the Studio. Please mark the issue on YouTrack using Studio Required tag.
  • No UI work is needed

@redknightlois redknightlois force-pushed the RDBC-1033 branch 2 times, most recently from 4c3f61b to f5b2d2f Compare March 2, 2026 15:22
…atistics

- EssentialDatabaseStatistics mirrors C# AbstractDatabaseStatistics fields:
  count_of_indexes, count_of_documents, count_of_revision_documents,
  count_of_documents_conflicts, count_of_tombstones, count_of_conflicts,
  count_of_attachments, count_of_counter_entries, count_of_time_series_segments,
  indexes
- EssentialIndexInformation class with name, lock_mode, priority, type,
  source_type, archived_data_processing_behavior
- ArchivedDataProcessingBehavior enum added to index definitions
- GetEssentialStatisticsOperation hits /stats/essential
- All new public types exported from top-level ravendb package
- EssentialDatabaseStatistics.from_json uses key-existence check on Indexes
  (consistent with DatabaseStatistics peer) so an empty list is preserved as []
- _GetEssentialStatisticsCommand passes EssentialDatabaseStatistics to
  RavenCommand.__init__ so all-nodes-failed errors name the correct class
@redknightlois redknightlois changed the base branch from v7.1 to v7.2 March 6, 2026 21:11
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