Update cycle_notification_history_in_batches.sql

This commit is contained in:
poveyd
2020-05-05 11:11:21 +01:00
committed by GitHub
parent 0d5b78149f
commit b425984cd9

View File

@@ -1,5 +1,7 @@
-- Call once at the start of the process
create index created_id_nh on notification_history (created_at, id);
CREATE TABLE notification_history_pivot AS SELECT * from notification_history WHERE 1=2;
CREATE TEMPORARY TABLE nh_temp AS SELECT id FROM notification_history;