[BUG] Missing index for "log" collection
JurajSpisiak opened this issue · comments
JurajSpisiak commented
Describe the bug
Log collection in database takes too much disk space after some time in production. By default there is only index for _id. Please add automatic index creation for field UtcTimeStamp, to make future queries efficient. This index can be defined as TTL, with expiration time defined, or the whole collection could be defined as capped collection with size limit for example 1GB.
Expected behavior
Fast queries on Log collection based on field UtcTimeStamp, with automatic clean up of collection of older entries or capped by disk space.
peterbarancek commented
/cib
github-actions commented
Branch 82-_BUG_Missing_index_for_log_collection created!