TcOpenGroup / tcopen-app-templates

Contains application templates for TcOpen framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] Missing index for "log" collection

JurajSpisiak opened this issue · comments

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.