Commit graph

119 commits

Author SHA1 Message Date
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
Alex Gleason
9492b7654f
db/events: fix the local filter 2023-12-29 20:53:01 -06:00
Alex Gleason
358396fdac
Drop users table 2023-12-29 17:01:23 -06:00
Alex Gleason
13bf936088
Convert users to Events 2023-12-29 16:37:18 -06:00
Alex Gleason
4ce51014de
events.test: fix type error 2023-12-29 13:53:09 -06:00
Alex Gleason
56373c4ce3
Refactor memorelay as an EventStore 2023-12-29 13:35:57 -06:00
Alex Gleason
ccfdbfeb8d
Rework client as EventStore 2023-12-29 13:22:51 -06:00
Alex Gleason
e6c8d1dad9
Add an EventStore interface, refactor eventsDB 2023-12-29 13:12:16 -06:00
Alex Gleason
2d19ab207e
Add memorelay.test.ts 2023-12-28 13:36:50 -06:00
Alex Gleason
b3c7e22052
memorelay: increase LRU limits 2023-12-28 12:15:24 -06:00
Alex Gleason
da6738a405
db/events: debug getFilters -> REQ 2023-12-28 12:07:49 -06:00
Alex Gleason
d40b4a509e
pipeline: use memorelay for encounters 2023-12-27 23:36:01 -06:00
Alex Gleason
acffdd7fb8
memorelay: insertEvent 2023-12-27 23:22:24 -06:00
Alex Gleason
5398042156
Add memorelay module 2023-12-27 22:49:35 -06:00
Alex Gleason
2fc9988c06
reqmeister: middleware/cache, reqmeister, nip05, unfurl, refactor some code 2023-12-27 20:07:13 -06:00
Alex Gleason
e121a8805e
debug: pool, db/events 2023-12-27 19:48:48 -06:00
Alex Gleason
29d3b7bf89
db/events: remove author orderBy clause 2023-12-11 14:44:35 -06:00
Alex Gleason
862ff74d7b
relays: don't automatically add crawled relays 2023-12-10 17:56:51 -06:00
Alex Gleason
733b8ba9c5
pubkey_stats --> author_stats 2023-12-10 16:04:52 -06:00
Alex Gleason
07dc07ab71
Simplify author_stats relation 2023-12-10 15:54:31 -06:00
Alex Gleason
5415656b4d
Make author_stats and event_stats two separate keys on an event 2023-12-10 15:40:05 -06:00
Alex Gleason
a48c1e51e1
stats: fix queries getting stuck 2023-12-10 15:33:01 -06:00
Alex Gleason
6a92c5135d
db/events: support 'stats' relation 2023-12-10 15:02:19 -06:00
Alex Gleason
21b6a02ff3
views: avoid counting directly in the view, take from the event object if it has it 2023-12-10 14:27:15 -06:00
Alex Gleason
3147496d78
Merge remote-tracking branch 'origin/main' into stats 2023-12-10 14:05:14 -06:00
Alex Gleason
8b03d492a1
stats: add migration for stats tables 2023-12-10 14:04:26 -06:00
Alex Gleason
f50a78f978
db/events: don't return author unless it exists 2023-12-06 13:06:13 -06:00
Alex Gleason
a6947441fc
renderStatus: don't fetch the author, expect it to be passed in 2023-12-06 12:04:24 -06:00
Alex Gleason
7d2813b214
extra --> relations, move it back to a filter option 2023-12-05 22:06:27 -06:00
Alex Gleason
22b1d730eb
with --> extra 2023-12-05 19:42:30 -06:00
Alex Gleason
8b4621ddfb
Merge remote-tracking branch 'origin/main' into with_authors 2023-12-05 19:18:53 -06:00
Alex Gleason
a6bf5f47cd
db/events: fix limit not being applied correctly 2023-12-05 18:22:12 -06:00
Alex Gleason
2478545cd3
with_authors --> with: With[] 2023-12-05 17:27:52 -06:00
Alex Gleason
e3d5b2ac4a
Move with_authors to GetFilterOpts instead of DittoFilter 2023-12-05 17:15:39 -06:00
Alex Gleason
f9d3240fa8
with_author --> with_authors 2023-12-05 16:52:39 -06:00
Alex Gleason
b3c749d266
db/events: add support for with_author filter 2023-12-05 16:40:45 -06:00
Alex Gleason
149f8f6f04
Enable WAL mode on the database 2023-10-11 22:30:07 -05:00
Alex Gleason
5cb87a0fd9
db/events: fix catching UNIQUE violations 2023-10-11 16:24:10 -05:00
Alex Gleason
b9476ccbd6
pipeline: delete unattached-media rows when authoring an event 2023-09-09 22:27:37 -05:00
Alex Gleason
0d343fa190
db/unattached-media: refactor queries, DRY 2023-09-09 22:03:02 -05:00
Alex Gleason
43499f2dfd
media: add attachment view, unify types 2023-09-09 21:33:12 -05:00
Alex Gleason
cf9a754b02
media: pukey --> pubkey, fix adding media tags to event 2023-09-09 20:12:47 -05:00
Alex Gleason
0b867afd8e
unattached-media: delete orphaned attachments after 15 minutes 2023-09-09 19:27:39 -05:00
Alex Gleason
e8053ba072
unattached-media: cid --> url 2023-09-09 18:12:54 -05:00
Alex Gleason
c88b174d02
Add unattached_media table, insert one when uploading a file 2023-09-09 17:41:30 -05:00
Alex Gleason
c6b20e68f6
db/events: refactor filterIndexableTags function 2023-09-09 16:24:53 -05:00
Alex Gleason
f8b2efb484
db/events: refactor insertEvent into smaller functions 2023-09-09 16:08:30 -05:00