From f080027ac1bf85c1e03b45088f42aee0e43f0814 Mon Sep 17 00:00:00 2001 From: Kirill Solomko Date: Wed, 18 Nov 2015 15:44:44 +0100 Subject: [PATCH] MT#16491 accounting.cdr index for calls query optimization Change-Id: I715eda053ffa9ecad640c0d999ab97f357cba34f --- db_scripts/diff/15205.down | 6 ++++++ db_scripts/diff/15205.up | 6 ++++++ 2 files changed, 12 insertions(+) create mode 100644 db_scripts/diff/15205.down create mode 100644 db_scripts/diff/15205.up diff --git a/db_scripts/diff/15205.down b/db_scripts/diff/15205.down new file mode 100644 index 00000000..f71776a5 --- /dev/null +++ b/db_scripts/diff/15205.down @@ -0,0 +1,6 @@ +use accounting; +set autocommit=0; + +DROP INDEX src_dst_stime_idx ON accounting.cdr; + +commit; diff --git a/db_scripts/diff/15205.up b/db_scripts/diff/15205.up new file mode 100644 index 00000000..48f9d657 --- /dev/null +++ b/db_scripts/diff/15205.up @@ -0,0 +1,6 @@ +use accounting; +set autocommit=0; + +CREATE INDEX src_dst_stime_idx ON accounting.cdr(source_cli, destination_user_in, start_time); + +commit;