GUAC-1373: Add new indexes to help performance in search query.
This commit is contained in:
1 parent
feaf4007f6
commit
8f58d90ec7
2 files changed
+2
No files matched your search
+1
@@ -26,3 +26,4 @@
|
|||||||
|
|
||||||
ALTER TABLE guacamole_connection_history ADD KEY (start_date);
|
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 (end_date);
|
||||||
|
ALTER TABLE guacamole_connection_history ADD KEY search_index (start_date, connection_id, user_id);
|
||||||
+1
@@ -26,3 +26,4 @@
|
|||||||
|
|
||||||
CREATE INDEX ON guacamole_connection_history(start_date);
|
CREATE INDEX ON guacamole_connection_history(start_date);
|
||||||
CREATE INDEX ON guacamole_connection_history(end_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);
|
||||||
Reference in new issue
Block a user