update stats table indexes

This commit is contained in:
Damodar Lohani 2021-08-19 13:47:28 +05:45
parent 800a76db72
commit 423ecb1071

View file

@ -1473,9 +1473,16 @@ $collections = [
'orders' => [Database::ORDER_DESC],
],
[
'$id' => '_key_time_period',
'$id' => '_key_metric',
'type' => Database::INDEX_KEY,
'attributes' => ['time', 'period'],
'attributes' => ['metric'],
'lengths' => [],
'orders' => [Database::ORDER_ASC],
],
[
'$id' => '_key_metric_period',
'type' => Database::INDEX_KEY,
'attributes' => ['metric', 'period'],
'lengths' => [],
'orders' => [Database::ORDER_DESC],
],