Commit graph

213 commits

Author SHA1 Message Date
Siddharth Singh
36b9aae1ab
switch to postgres.js available-connections branch temporarily 2024-07-06 20:07:02 +05:30
Siddharth Singh
102398967e
fix type stuff 2024-07-06 18:18:38 +05:30
Siddharth Singh
3495092eff
add poolsize and availableconnections metrics back 2024-07-06 18:15:21 +05:30
Siddharth Singh
a804608afb Merge branch 'main' into 'use-postgres-js'
# Conflicts:
#   deno.json
#   src/db/adapters/DittoPostgres.ts
2024-07-06 12:03:21 +00:00
Alex Gleason
fd769c125c Merge branch 'zapped-by-pagination-sort-amount' into 'main'
zapped_by: add pagination & sort amount

Closes #159

See merge request soapbox-pub/ditto!394
2024-07-02 05:17:11 +00:00
Siddharth Singh
65f77e845d
fmt 2024-07-01 21:43:01 +05:30
Siddharth Singh
98aaab8e51
switch to deno.land/postgresjs for free 4x speed increase 2024-07-01 21:42:50 +05:30
Alex Gleason
d062f6bbb6
Try lazy pool initialization 2024-07-01 08:44:01 +01:00
Siddharth Singh
ae140933f5
replace kysely_deno_postgres with kysely-postgres-js 2024-06-30 13:13:01 +05:30
P. Reis
9cdb8ec534 fix(KyselyLogger): use dbQueryTimeHistogram.observe 2024-06-27 10:34:12 -03:00
P. Reis
ac9bdfde62 refactor(KyselyLogger): use startTimer instead of observe 2024-06-27 10:23:10 -03:00
Siddharth Singh
ab5f451929
fmt 2024-06-26 01:33:02 +05:30
Siddharth Singh
7c7c584b78
basic (and incredibly stupid but potentially genius) db_query_time histogram 2024-06-26 01:30:16 +05:30
Alex Gleason
d7d14194d7
Collect database connections metrics 2024-06-24 22:01:01 -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
P. Reis
ddb93af09f feat(DittoTables): create EventZapRow 2024-06-20 14:33:25 -03:00
Alex Gleason
1fe4b4bb81
Upgrade kysely_deno_postgres 2024-06-17 23:36:50 -05:00
Alex Gleason
91fe7acbd2
Index nostr_tags.name 2024-06-13 21:36:07 -05:00
P. Reis
c77da12f9d Merge branch 'main' into feat-zap-counter 2024-06-10 09:52:28 -03:00
P. Reis
d260825660 feat: add 'zaps_amount' to EventStatsRow as number 2024-06-10 09:34:14 -03:00
P. Reis
1f4de9aed0 feat: add migration for 'zaps_amount' column 2024-06-10 09:34:07 -03:00
Alex Gleason
7d54a5c7d0
Kind 30361 -> 30382 2024-06-08 11:32:29 -05: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
250998405a
Rework database Conf to easily get the dialect 2024-05-24 20:07:38 -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
34f3cc8d24
Fully test the new stats module 2024-05-24 15:52:30 -05:00
Alex Gleason
101a16bc12
Index the Postgres FTS column 2024-05-21 16:30:48 -05:00
Alex Gleason
b1b341d3b8
Insert media URL into text 2024-05-18 15:29:12 -05:00
Alex Gleason
e7d350a0e3
Fix uploading by URL 2024-05-18 14:54:10 -05:00
Alex Gleason
611a94bdcf
Fix uploading (almost) 2024-05-18 14:32:50 -05:00
Alex Gleason
7d34b9401e
Support imeta tags 2024-05-18 13:22:20 -05:00
Alex Gleason
5aacbe7af5
Fix media uploads due to 'awaiting' a query builder instance 2024-05-16 18:53:04 -05:00
Alex Gleason
00d4bf2344
Upgrade Nostrify to v0.20.0, enable Postgres FTS 2024-05-16 15:42:32 -05:00
Alex Gleason
2ede439005
Upgrade Nostrify to v0.19.1, fix phantom deletions 2024-05-16 09:29:53 -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
69108c0375
UnattachedMedia: point to new EventsDB tables 2024-05-14 20:58:29 -05:00
Alex Gleason
b3985e740b
EventsDB: migrate tables to match NDatabase 2024-05-14 20:54:09 -05:00
Alex Gleason
a4226a963f
Rework Kysely db to be async 2024-05-14 18:44:42 -05:00
Alex Gleason
68b5887ed0
Don't let your memes be dreams 2024-05-14 18:24:34 -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
43e8f2a698
Use a Kysely logger to log SQL regardless of the adapter used 2024-05-08 12:56:42 -05:00