From fa0eba3a115e6af893368757ac1a0d62dfa4ebd0 Mon Sep 17 00:00:00 2001 From: Roland Schneider Date: Wed, 11 Jan 2017 07:30:40 +0100 Subject: [PATCH] add door log related indexes --- common/mysql/index.sql | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 common/mysql/index.sql diff --git a/common/mysql/index.sql b/common/mysql/index.sql new file mode 100644 index 0000000..cb0561b --- /dev/null +++ b/common/mysql/index.sql @@ -0,0 +1,5 @@ +create index idx_door_Log_2 on door_log (created_at,id_ticket_current, direction); +create index idx_door_Log_3 on door_log (created_at, id_customer, id_ticket_current, direction); +create index idx_ticket_2 on ticket (start,end,status,count_move_out,max_usage_count,id_card); +create index idx_card_1 on card ( type, id_card); +create index idx_contract_1 on contract ( id_customer, expired_at,flag ); \ No newline at end of file