Skip to content

Commit

Permalink
fix indexing in endpointgroupreports and usagereports
Browse files Browse the repository at this point in the history
Signed-off-by: Utkarsh Srivastava <[email protected]>
  • Loading branch information
tangledbytes committed Oct 16, 2024
1 parent d5689fa commit 7ad546f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
6 changes: 3 additions & 3 deletions src/server/analytic_services/endpoint_group_report_indexes.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
module.exports = [{
fields: {
start_time: 1,
aggregated_time: -1,
aggregated_time_range: 1,
end_time: 1,
group_name: 1,
},
options: {
unique: false,
}
}, ];
}];
22 changes: 13 additions & 9 deletions src/server/analytic_services/usage_report_indexes.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
/* Copyright (C) 2016 NooBaa */
'use strict';

module.exports = [{
fields: {
start_time: 1,
aggregated_time: -1,
aggregated_time_range: 1,
},
options: {
unique: false,
module.exports = [
// There are many other fields in the table but this is a common denominator
// and the hot query uses only these fields.
{
fields: {
start_time: 1,
end_time: 1,
bucket: 1,
},
options: {
unique: false,
}
}
}, ];
];

0 comments on commit 7ad546f

Please sign in to comment.