Files
notifications-api/tests/app
Rebecca Law 80845e1abb Transaction to insert history and delete notifications.
Need to test the performance of this function, then we can call it from the task.
- Create a temporary table to insert ids of the desired rows, limit by 10K (might be too low).
- Insert into NotifcationHistory select from notification where id in temp table
- Delete from Notifications where id in temp table
- drop temp table

We should be able to iterate of this. The query stats for the query to create the temp table are very good, 17ms.
2020-03-23 16:33:06 +00:00
..
2020-02-06 10:57:43 +00:00
2020-03-17 10:07:47 +00:00
2020-02-18 14:59:46 +00:00
2019-12-13 10:02:39 +00:00
2020-01-06 17:53:56 +00:00
2020-03-19 13:41:14 +00:00
2019-12-13 10:02:39 +00:00
2019-12-04 15:26:26 +00:00