Skip to content

Stats to return from db #6

@tomijaga

Description

@tomijaga

Index stats

  • Cardinality of each field
  • % of total entries populating an index
    • Our indexes have a value for every entry in the db. If the field doesnot exist for that entry then the value set#Null`

collection stats

  • Avg document size
  • memory usage
  • percentage of memory consumed by indexes

Query Stats

Stats returned in the response of every query

  • instructions - instructions used in executing the query
  • total - The total number of records that would be returned from the query if the data was not paginated. This might also be optional as this requires additional computation
  • indexes_used - indexes used for the query. Should also show which parts of the query was executed on these indexes
  • query_plan - the query plan generated for the query

Sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions