You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 25, 2024. It is now read-only.
" SELECT ARRAY_AGG(event_nid) FROM roomserver_events WHERE room_nid = $1"+
42
42
")"
43
43
44
+
// This removes the majority of prev events and is way faster than the above.
45
+
// The above query is still needed to delete the remaining prev events.
46
+
constpurgePreviousEvents2SQL=""+
47
+
"DELETE FROM roomserver_previous_events rpe WHERE EXISTS(SELECT event_id FROM roomserver_events re WHERE room_nid = $1 AND re.event_id = rpe.previous_event_id)"
48
+
44
49
constpurgePublishedSQL=""+
45
50
"DELETE FROM roomserver_published WHERE room_id = $1"
" SELECT event_nid FROM roomserver_events WHERE room_nid = $1"+
42
42
")"
43
43
44
+
// This removes the majority of prev events and is way faster than the above.
45
+
// The above query is still needed to delete the remaining prev events.
46
+
constpurgePreviousEvents2SQL=""+
47
+
"DELETE FROM roomserver_previous_events AS rpe WHERE EXISTS(SELECT event_id FROM roomserver_events AS re WHERE room_nid = $1 AND re.event_id = rpe.previous_event_id)"
48
+
44
49
constpurgePublishedSQL=""+
45
50
"DELETE FROM roomserver_published WHERE room_id = $1"
0 commit comments