Skip to content
Snippets Groups Projects
Commit 9462b40d authored by Ryan Michael Magee's avatar Ryan Michael Magee
Browse files

inj_snr_simplify_and_cluster.sql: improved indexing for cluster info table

parent 05e11057
No related branches found
No related tags found
No related merge requests found
Pipeline #92252 failed
......@@ -174,6 +174,9 @@ FROM
-- create a look-up table of info required for clustering
--
CREATE INDEX tmpindex1 ON coinc_event_map (coinc_event_id);
CREATE INDEX tmpindex2 ON coinc_event (coinc_event_id);
CREATE TEMPORARY TABLE _cluster_info_ AS
SELECT
coinc_event.coinc_event_id AS coinc_event_id,
......@@ -187,6 +190,9 @@ CREATE TEMPORARY TABLE _cluster_info_ AS
JOIN coinc_inspiral ON (
coinc_inspiral.coinc_event_id == coinc_event.coinc_event_id
);
DROP INDEX tmpindex1;
DROP INDEX tmpindex2;
CREATE INDEX tmpindex1 ON _cluster_info_ (coinc_event_id);
CREATE INDEX tmpindex2 ON _cluster_info_ (category, end_time, ranking_stat);
......
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