1
0
mirror of https://github.com/scsibug/nostr-rs-relay.git synced 2025-07-31 08:18:28 -04:00

docs: example SQL to delete old events

Added SQL Query example to delete events older than 30 days.
This commit is contained in:
Václav Navrátil
2023-07-17 18:25:14 +02:00
committed by Greg Heartsfield
parent 4adad4c3a9
commit 34f497a650

@@ -112,7 +112,8 @@ seen" policy.
```console ```console
PRAGMA foreign_keys = ON; PRAGMA foreign_keys = ON;
TODO!
DELETE FROM event WHERE first_seen < CAST(strftime('%s', date('now', '-30 day')) AS INT);
``` ```
### Delete Profile Events with No Recent Events ### Delete Profile Events with No Recent Events