Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.13: New /stats fields #3151

Open
1 task
guimachiavelli opened this issue Feb 6, 2025 · 1 comment · Fixed by #3152
Open
1 task

v1.13: New /stats fields #3151

guimachiavelli opened this issue Feb 6, 2025 · 1 comment · Fixed by #3152
Milestone

Comments

@guimachiavelli
Copy link
Member

guimachiavelli commented Feb 6, 2025

v1.13 adds three new fields to the stats object:

  • usedDatabaseSize corresponds to the total space used by the data stored in Meilisearch. This value doesn't count the unused space claimed by LMDB, removing documents from the DB will decrease this value.
  • numberOfEmbeddings represents the total number of embeddings representation that exists in that indexes. A document can contains a representation per embedder used. so basically => numberOfEmbeddedDocuments * the number of embedder they have a rep for
  • numberOfEmbeddedDocuments represents the number of document in an index that contains at least one embedded representation — this is the one we will likely sum at a project level when we bill AI documents in the futur
  • rawDocumentDbSize corresponds to the total size of the documents stored in Meilisearch.
  • maxDocumentSize corresponds to the size of the biggest document in the database.
  • avgDocumentSize corresponds to the total size of the documents stored in Meilisearch divided by the number of documents.

usedDatabaseSize is differente from databaseSize. The latter corresponds to the total disk space claimed by Meilisearch. Because LMDB doesn't free the unused space, deleting documents will not decrease this value.

Tasks

  • Update /reference/api/stats.mdx

References

@guimachiavelli
Copy link
Member Author

Due to performance reasons, the following won't be included in v1.13:

  • rawDocumentDbSize
  • maxDocumentSize
  • avgDocumentSize

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 a pull request may close this issue.

1 participant