Commit 71f628a0 authored by Nigel Kukard's avatar Nigel Kukard
Browse files

Merge branch 'smadmin-optimizations' into 'master'

Added index keys to accounting_summary table to speedup lookups

See merge request !424
parents f9179295 4d8a1823
Pipeline #1951 passed with stages
in 3 minutes and 21 seconds
......@@ -269,6 +269,9 @@ CREATE TABLE @PREFIX@accounting_summary (
TotalOutput @INT_UNSIGNED@
CREATE INDEX @PREFIX@accounting_summary_idx1 ON @PREFIX@accounting_summary (Username);
CREATE INDEX @PREFIX@accounting_summary_idx2 ON @PREFIX@accounting_summary (PeriodKey);
CREATE INDEX @PREFIX@accounting_summary_idx3 ON @PREFIX@accounting_summary (Username,PeriodKey);
/* Users data */
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment