#community-help

Tracking Size of a Collection in Typesense

TLDR Prabhu asked if Typesense tracks the size of a collection, Kishore Nallan clarified that only total memory usage is tracked, not per collection.

Powered by Struct AI
3
11mo
Solved
Join the chat
Nov 21, 2022 (11 months ago)
Prabhu
Photo of md5-aece7b06eda2a85a5bcfb5fd39332e2c
Prabhu
08:33 AM
hello team - does anyone know if typesense keeps tracks of the size of a collection? Is it possible to fetch the size via an API call? I searched the API reference but couldn't find one. Can one use the size of the db directory as a rough approximation for this? Thanks!
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
08:44 AM
We only return total memory usage in metrics endpoint. No per collection size.
Prabhu
Photo of md5-aece7b06eda2a85a5bcfb5fd39332e2c
Prabhu
09:13 AM
Thanks Kishore!