Skip to content

Commit 7ad546f

Browse files
committed
fix indexing in endpointgroupreports and usagereports
Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com>
1 parent d5689fa commit 7ad546f

File tree

2 files changed

+16
-12
lines changed

2 files changed

+16
-12
lines changed

src/server/analytic_services/endpoint_group_report_indexes.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
module.exports = [{
55
fields: {
66
start_time: 1,
7-
aggregated_time: -1,
8-
aggregated_time_range: 1,
7+
end_time: 1,
8+
group_name: 1,
99
},
1010
options: {
1111
unique: false,
1212
}
13-
}, ];
13+
}];
Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
/* Copyright (C) 2016 NooBaa */
22
'use strict';
33

4-
module.exports = [{
5-
fields: {
6-
start_time: 1,
7-
aggregated_time: -1,
8-
aggregated_time_range: 1,
9-
},
10-
options: {
11-
unique: false,
4+
module.exports = [
5+
// There are many other fields in the table but this is a common denominator
6+
// and the hot query uses only these fields.
7+
{
8+
fields: {
9+
start_time: 1,
10+
end_time: 1,
11+
bucket: 1,
12+
},
13+
options: {
14+
unique: false,
15+
}
1216
}
13-
}, ];
17+
];

0 commit comments

Comments
 (0)