GUAC-1373: Add new indexes to help performance in search query.

This commit is contained in:
James Muehlner
2015-11-24 20:46:41 -08:00
parent feaf4007f6
commit 8f58d90ec7
2 changed files with 2 additions and 0 deletions

View File

@@ -26,3 +26,4 @@
ALTER TABLE guacamole_connection_history ADD KEY (start_date);
ALTER TABLE guacamole_connection_history ADD KEY (end_date);
ALTER TABLE guacamole_connection_history ADD KEY search_index (start_date, connection_id, user_id);

View File

@@ -26,3 +26,4 @@
CREATE INDEX ON guacamole_connection_history(start_date);
CREATE INDEX ON guacamole_connection_history(end_date);
CREATE INDEX guacamole_connection_history_search_index ON guacamole_connection_history(start_date, connection_id, user_id);