Commit Graph

62 Commits

Author SHA1 Message Date
Alex Gleason
f8902760ce Make the language index a compound index 2024-09-15 13:37:23 -05:00
Alex Gleason
c24d11c6f3 Support NIP-50 language extension 2024-09-15 12:40:58 -05:00
Alex Gleason
f3ae200833 Simplify database interfaces, make tests use pglite 2024-09-11 11:48:58 -05:00
Alex Gleason
dc8d09a9da Remove SQLite support 2024-09-11 11:08:33 -05:00
Alex Gleason
8efd6fbb20 Remove unattached_media table, replace with LRUCache, fix media upload order problem 2024-09-07 10:24:56 -05:00
Alex Gleason
27ba8b071a pg migration: advise checking out main branch 2024-08-12 16:48:42 -05:00
Alex Gleason
c4064d0fa6 pg migration: 3 days -> several hours 2024-08-12 15:54:56 -05:00
Alex Gleason
8a23011392 pg migration: cascade 2024-08-12 15:17:42 -05:00
Alex Gleason
5c23cb02c2 Add NPostgres migration 2024-08-12 14:37:41 -05:00
Alex Gleason
31f5254fb3 Clear timeouts in tag queries migration 2024-07-29 15:37:45 -05:00
Alex Gleason
48a4e30e38 trends: read directly from the tags table instead of doing an inner join on events 2024-07-29 15:33:16 -05:00
Alex Gleason
ece18c9bd8 Add tags table migration 2024-07-29 15:32:36 -05:00
Alex Gleason
8ec5feae13 Sort events by id after created_at 2024-07-18 22:48:11 -05:00
P. Reis
05bf417bcc perf(event_zaps): make two separate indexes instead of a compound index 2024-06-23 22:49:15 -03:00
P. Reis
ec82e14410 fix: add amount_millisats in event_zaps index 2024-06-21 18:35:26 -03:00
P. Reis
2d937a7378 refactor(event_zaps): rename amount to amount_millisats 2024-06-21 18:20:10 -03:00
P. Reis
bac0b48801 feat: add migration for event_zaps;create idx_event_zaps_id_amount 2024-06-20 14:36:19 -03:00
Alex Gleason
91fe7acbd2 Index nostr_tags.name 2024-06-13 21:36:07 -05:00
P. Reis
1f4de9aed0 feat: add migration for 'zaps_amount' column 2024-06-10 09:34:07 -03:00
Alex Gleason
22c840092f Add quotes count 2024-06-02 20:30:57 -05:00
Alex Gleason
7221b5f203 grant_type nostr -> nostr_bunker, connections -> nip46_tokens 2024-05-29 16:14:21 -05:00
Alex Gleason
c55cd2a977 blob -> bytea 2024-05-26 20:41:14 -05:00
Alex Gleason
0141a732c3 Add connections table 2024-05-26 19:21:15 -05:00
Alex Gleason
4330cae626 Fix Conf.db in migrations 2024-05-24 20:16:51 -05:00
Alex Gleason
c6dea07ac3 Add back reactions_count column so trending can still work 2024-05-24 17:51:32 -05:00
Alex Gleason
f7c9a96719 Nuke the old stats module, support emoji reactions on posts 2024-05-24 17:40:51 -05:00
Alex Gleason
101a16bc12 Index the Postgres FTS column 2024-05-21 16:30:48 -05:00
Alex Gleason
00d4bf2344 Upgrade Nostrify to v0.20.0, enable Postgres FTS 2024-05-16 15:42:32 -05:00
Alex Gleason
7021b0d4fd 'null' -> null 2024-05-15 08:13:19 -05:00
Alex Gleason
171350a34d Drop deleted_at column 2024-05-15 08:08:30 -05:00
Alex Gleason
b3985e740b EventsDB: migrate tables to match NDatabase 2024-05-14 20:54:09 -05:00
Alex Gleason
b16d5b749e Add a created_at, kind index for the global feed 2024-05-08 14:34:22 -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
621a632893 Update kysely imports in migrations 2024-05-01 09:36:36 -05:00
Alex Gleason
9ccf6bbea0 Mold the things to work with Postgres 2024-04-19 20:52:42 -05:00
Alex Gleason
c0c586b364 Add last_updated_at column to pubkey_domains 2024-04-05 21:48:59 -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
358396fdac Drop users table 2023-12-29 17:01:23 -06:00
Alex Gleason
733b8ba9c5 pubkey_stats --> author_stats 2023-12-10 16:04:52 -06:00
Alex Gleason
8b03d492a1 stats: add migration for stats tables 2023-12-10 14:04:26 -06:00
Alex Gleason
149f8f6f04 Enable WAL mode on the database 2023-10-11 22:30:07 -05:00
Alex Gleason
cf9a754b02 media: pukey --> pubkey, fix adding media tags to event 2023-09-09 20:12:47 -05:00
Alex Gleason
e8053ba072 unattached-media: cid --> url 2023-09-09 18:12:54 -05:00