Commit Graph

165 Commits

Author SHA1 Message Date
Alex Gleason
b16d5b749e Add a created_at, kind index for the global feed 2024-05-08 14:34:22 -05:00
Alex Gleason
43e8f2a698 Use a Kysely logger to log SQL regardless of the adapter used 2024-05-08 12:56:42 -05:00
Alex Gleason
5e1cfad5cc Add PG_POOL_SIZE environment variable 2024-05-08 11:46:27 -05:00
Alex Gleason
a3e54fdff4 DittoPostgres: use pool size for number of CPU cores 2024-05-06 11:44:33 -05:00
Alex Gleason
3770d8a0dd UnattachedMedia: return early when querying nothing 2024-05-04 13:14:03 -05:00
Alex Gleason
439dfca311 Fix kysely imports in migrations 2024-05-01 19:16:12 -05:00
Alex Gleason
87264eeef1 Remove relays table from the database, track them with a NIP-65 admin event 2024-05-01 19:15:20 -05:00
Alex Gleason
8959f85afb Fix imports of uuid62 and fast-stringify-stable 2024-05-01 16:42:07 -05:00
Alex Gleason
c4d8ad2368 uuid62 alias 2024-05-01 16:21:18 -05:00
Alex Gleason
8738aeb820 tldts alias 2024-05-01 16:19:53 -05:00
Alex Gleason
3513206de1 stickynotes alias 2024-05-01 16:14:50 -05:00
Alex Gleason
c190d2c8ce Refactor Storages to get lazy-loaded only when they are used 2024-05-01 14:56:47 -05:00
Alex Gleason
621a632893 Update kysely imports in migrations 2024-05-01 09:36:36 -05:00
Alex Gleason
4291691aa7 Make @soapbox/kysely-deno-sqlite an import alias 2024-05-01 09:27:19 -05:00
Alex Gleason
23e00b0042 Make Kysely an import alias 2024-05-01 09:26:17 -05:00
Alex Gleason
0ddb1782e5 DittoDB: support postgresql: protocol 2024-04-19 21:20:35 -05:00
Alex Gleason
80e554a5c9 Update deno.json imports 2024-04-19 21:08:13 -05:00
Alex Gleason
9ccf6bbea0 Mold the things to work with Postgres 2024-04-19 20:52:42 -05:00
Alex Gleason
b87a59c521 Merge remote-tracking branch 'origin/main' into postgres 2024-04-19 18:32:02 -05:00
Alex Gleason
9c91e41e87 Switch NSpec to Nostrify, update imports 2024-04-19 16:39:35 -05:00
Alex Gleason
450acddc32 Remove pragma.ts 2024-04-19 15:34:05 -05:00
Alex Gleason
2e41254507 Add Postgres adapter 2024-04-19 15:17:09 -05:00
Alex Gleason
3753648f99 Use new DittoDB module, rename old interface to DittoTables 2024-04-19 12:26:15 -05:00
Alex Gleason
4085443e45 Add DittoDB module for selecting a database depending on the DATABASE_URL 2024-04-19 12:21:32 -05:00
Alex Gleason
29102d272a Add DittoSQLite module 2024-04-19 12:16:48 -05:00
Alex Gleason
c0c586b364 Add last_updated_at column to pubkey_domains 2024-04-05 21:48:59 -05:00
Alex Gleason
9842b1aedd Remove username from user events 2024-03-27 18:11:07 -05:00
Alex Gleason
f2db6c50b8 pubkey_domains domain cannot be null 2024-03-20 13:21:34 -05:00
Alex Gleason
e2cc6132be Track pubkey domains 2024-03-19 17:45:19 -05:00
Alex Gleason
2972cb4b6d Add event stats indexes 2024-03-02 21:20:43 -06:00
Alex Gleason
e4f53b3936 Soft-delete events 2024-03-02 21:11:45 -06:00
Alex Gleason
96b5ecc435 Fix dropIndex calls 2024-03-02 19:23:28 -06:00
Alex Gleason
19adb3ab44 Use composite index for tags 2024-03-02 19:21:48 -06:00
Alex Gleason
dffa70e2fe Add missing index on kind-pubkey-created_at 2024-03-02 17:57:43 -06:00
Alex Gleason
59d53c4a2f Add APISigner and AdminSigner classes, implement NostrSigner interface 2024-02-12 11:52:05 -06:00
Alex Gleason
5b24b7ad39 Pass Request signal down from API controllers 2024-01-23 15:58:59 -06:00
Alex Gleason
c6062874bd Implement NStore interface from NLib 2024-01-23 14:06:51 -06:00
Alex Gleason
aaf01462c1 Update code to use new DittoEvent and DittoFilter. Event -> NostrEvent 2024-01-23 12:07:22 -06:00
Alex Gleason
937ae1eab6 Refactor EventStore to use a more Set-like interface 2024-01-08 15:18:01 -06:00
Alex Gleason
b3e4b79439 Delete db/events.ts, db/memorelay.ts, move to @/storages.ts 2024-01-03 21:56:41 -06:00
Alex Gleason
b5c23cf23f Move EventsDB into storages 2024-01-03 14:45:56 -06:00
Alex Gleason
f667ba3c69 Memorelay: reimplement by just looping events with matchFilters 2024-01-03 13:55:22 -06:00
Alex Gleason
5af0e0992f db/events: ensure local bookmarks get indexed 2024-01-01 14:21:05 -06:00
Alex Gleason
e341ec7b36 db/events: respect the signal 2023-12-31 21:01:30 -06:00
Alex Gleason
e869651c63 users: remove duplicate debug call 2023-12-30 09:58:12 -06:00
Alex Gleason
79349124bc Prevent duplicate usernames from being added 2023-12-30 09:57:33 -06:00
Alex Gleason
529bc11da1 Support replaceable events and parameterized replaceable events (delete old versions upon insert) 2023-12-29 23:21:05 -06:00
Alex Gleason
38238cc4a8 Fix db/events test, remove unnecessary AbortSignal from pipeline 2023-12-29 21:21:56 -06:00
Alex Gleason
f6a8ab570f db/events: simplify it further 2023-12-29 21:08:59 -06:00
Alex Gleason
b39902d322 Load local timeline a lot faster by using leftJoin instead of innerJoin, wow 2023-12-29 21:05:31 -06:00