Commit graph

2014 commits

Author SHA1 Message Date
P. Reis
e169749b82 refactor(EventsDB): throw RelayError instead of Error 2024-07-02 18:39:55 -03:00
P. Reis
2d017e8102 refactor(relay): remove invalid filter condition 2024-07-02 18:39:22 -03:00
P. Reis
a868512188 refactor: error messages in app.onError() 2024-07-02 18:38:16 -03:00
P. Reis
1731e7dac9 Merge branch 'main' into handle-timeout-error
(((updating local branch)))
2024-07-02 17:31:36 -03:00
P. Reis
360efe089d test(EventsDB): throw error for large since, until and kinds filter 2024-07-02 17:31:12 -03:00
P. Reis
cac5c9c1e0 refactor: change timeout error message 2024-07-02 17:17:29 -03:00
P. Reis
e6c38550c6 feat: add onError() function hono handler 2024-07-02 17:15:47 -03:00
P. Reis
a7f2fb06ee feat(relay): send custom error messages - since, until & kind 2024-07-02 17:09:17 -03:00
Alex Gleason
3e7bab538a
Increase timeout for account statuses endpoint and feed endpoints 2024-07-02 20:13:44 +01:00
Alex Gleason
c7092f5d2d
Increase query timeout of feeds 2024-07-02 09:22:59 +01: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
Alex Gleason
4c257fa529 Merge branch 'timeouts' into 'main'
Add query timeouts

See merge request soapbox-pub/ditto!403
2024-07-02 05:16:09 +00:00
Alex Gleason
137e2eae52 Merge branch 'nostr-pull-improvements' into 'main'
improvements to nostr:pull script

See merge request soapbox-pub/ditto!406
2024-07-02 03:19:21 +00:00
Siddharth Singh
757e5c9baa
print name as import acknowledgement 2024-07-02 05:21:16 +05:30
Siddharth Singh
d2df6721bd
fix kind 1 querying logic 2024-07-02 05:01:16 +05:30
Siddharth Singh
f1e9eb4f4c
fetch each author's notes separately 2024-07-02 04:58:06 +05:30
Siddharth Singh
5f0b1ffe79
fetch profiles separately from notes 2024-07-02 04:56:38 +05:30
Alex Gleason
ae687bb525
Increase timeouts 2024-07-01 23:05:03 +01:00
Alex Gleason
3ae6d39ebc
Increase notifications endpoint timeout 2024-07-01 20:29:06 +01:00
Alex Gleason
4e150edb5b
Actually enable query timeouts 🤦 2024-07-01 19:48:28 +01:00
Alex Gleason
a00db2f4c1 Merge branch 'script-import-user' into 'main'
deno task db:import

See merge request soapbox-pub/ditto!405
2024-07-01 17:54:18 +00:00
Siddharth Singh
6974b78952
db:import --> nostr:pull 2024-07-01 23:21:29 +05:30
Siddharth Singh
e07be77de7
fix import order 2024-07-01 23:13:20 +05:30
Siddharth Singh
98e9ccfc46
fix import 2024-07-01 23:08:15 +05:30
Siddharth Singh
434056b839
rename evt to event 2024-07-01 23:06:41 +05:30
Siddharth Singh
ea987dfa14
support raw pubkeys as well as npubs 2024-07-01 23:06:09 +05:30
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
092a20088a
Reduce timeouts 2024-07-01 09:18:42 +01:00
Alex Gleason
c3ffe7c7f7
EventsDB: fix limit being passed to NDatabase 2024-07-01 08:53:03 +01:00
Alex Gleason
d062f6bbb6
Try lazy pool initialization 2024-07-01 08:44:01 +01:00
Alex Gleason
96fe171d65
Use kysely_deno_postgres with simple transactions 2024-07-01 07:22:33 +01:00
Siddharth Singh
480f4ed370
fmt 2024-06-30 16:31:02 +05:30
Siddharth Singh
9f3f6917d3
import script works now 2024-06-30 15:50:25 +05:30
Siddharth Singh
80f6172a64
create first version of import script 2024-06-30 15:35:46 +05:30
Siddharth Singh
ae140933f5
replace kysely_deno_postgres with kysely-postgres-js 2024-06-30 13:13:01 +05:30
Alex Gleason
9ea6c7b00b
Add query timeouts 2024-06-29 22:26:51 +01:00
Alex Gleason
bdd3b2224e Merge branch 'ms-to-seconds-histogram' into 'main'
fix(dbQueryTimeHistogram): change name to milliseconds ms instead of seconds

See merge request soapbox-pub/ditto!401
2024-06-27 17:40:32 +00:00
P. Reis
7f7efd12b8 fix(dbQueryTimeHistogram): change name to milliseconds ms instead of seconds 2024-06-27 13:32:23 -03:00
Alex Gleason
eba0605e32 Merge branch 'db-query-time-prom-metric' into 'main'
basic (and incredibly stupid but potentially genius) db_query_time histogram

See merge request soapbox-pub/ditto!400
2024-06-27 13:53:17 +00:00
P. Reis
9cdb8ec534 fix(KyselyLogger): use dbQueryTimeHistogram.observe 2024-06-27 10:34:12 -03:00
P. Reis
a81bc57961 refactor(dbQueryTimeHistogram): get rid of labelNames and buckets 2024-06-27 10:32:07 -03:00
P. Reis
ac9bdfde62 refactor(KyselyLogger): use startTimer instead of observe 2024-06-27 10:23:10 -03:00
P. Reis
d580cac763 refactor: dbQueryTimeHistogram 2024-06-27 10:20:55 -03:00
P. Reis
0f392b2dba fix(relays): get rid of custom kind 13314 conditional 2024-06-27 10:12:44 -03:00
Siddharth Singh
3e40e690c5
check admin pubkey while changing threshold 2024-06-26 01:44:44 +05:30
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
a965c3c997 Merge branch 'pg-metrics' into 'main'
Collect database connections metrics

See merge request soapbox-pub/ditto!399
2024-06-25 03:14:26 +00:00
Alex Gleason
d7d14194d7
Collect database connections metrics 2024-06-24 22:01:01 -05:00