Commit Graph

2 Commits (0a6e51ccc904)

Author SHA1 Message Date
Evgenii Stratonikov b66b5a2f37 [#42] registry: Optimize Count() for `ObjSelector`
It is the heaviest function executing on setup stage.
The culprit is the linear dependency between its execution
time and the amount of objects in registry. The solution is to store
object by status. While the optimization doesn't work for objects with
no status, it is currently provided by all scenarios.

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2023-05-15 16:08:26 +03:00
Evgenii Stratonikov 22d7996f79 [#42] registry: Optimize `ObjectInfo` marshaling
1. Get rid of JSON in the database.
2. Store `CreatedAt` as int64. It decreases JSON marshaling time by
   about ~25% with no changes for native scheme.

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2023-05-15 16:08:26 +03:00