Skip to content
Snippets Groups Projects
Commit 1463a1cc authored by Chad Hanna's avatar Chad Hanna
Browse files

Update simplify_and_cluster.sql to improve segment query speed.

parent 0d02c2b2
No related branches found
No related tags found
No related merge requests found
......@@ -112,7 +112,7 @@ DROP TABLE _idmap_;
-- references to their IDs in other tables
--
CREATE INDEX tmpindex ON segment(segment_def_id, start_time, start_time_ns, end_time, end_time_ns);
CREATE INDEX tmpindex ON segment(segment_def_id, start_time, start_time_ns, end_time, end_time_ns, segment_id);
DELETE FROM
segment
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment