Commit Graph

38 Commits

Author SHA1 Message Date
Alex Gleason
3e93b42251 stats: add a debug call 2024-05-18 08:13:37 -05:00
Alex Gleason
f9a0055e78 stats: add a Semaphore when refreshing author stats 2024-05-17 19:00:56 -05:00
Alex Gleason
23a366081f stats: maybe refresh stats when updating 2024-05-17 18:42:45 -05:00
Alex Gleason
bf479d0162 Move refreshAuthorStatsDebounced to stats.ts 2024-05-17 18:26:55 -05:00
Alex Gleason
ae9516b445 refreshAuthorStats: return the stats 2024-05-17 16:23:38 -05:00
Alex Gleason
a39910fa98 Add a function to recalculate author stats 2024-05-17 13:18:23 -05:00
Alex Gleason
4d3a9c6e23 stats: fix kysely screaming that we're awaiting a builder instance 2024-05-15 10:09:31 -05:00
Alex Gleason
a4226a963f Rework Kysely db to be async 2024-05-14 18:44:42 -05:00
Alex Gleason
08c9ee0670 Refactor client and firehose 2024-05-14 16:25:24 -05:00
Alex Gleason
7feecab723 stats: fix ambiguous column name error in Postgres? 2024-05-14 15:25:56 -05:00
Alex Gleason
eef349f1e9 Update stats before storing event 2024-05-14 15:05:59 -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
23e00b0042 Make Kysely an import alias 2024-05-01 09:26:17 -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
3753648f99 Use new DittoDB module, rename old interface to DittoTables 2024-04-19 12:26:15 -05:00
Alex Gleason
c62c31a171 updateStats: await getStatsDiff 2024-04-17 22:58:25 -05:00
P. Reis
3ebcf7ea25 refactor: undo repost counter in getStatsDiff 2024-04-11 09:53:24 -03:00
P. Reis
cdb0d817ed fix: repost counter works when undo repost 2024-04-10 19:15:24 -03: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
e6c8d1dad9 Add an EventStore interface, refactor eventsDB 2023-12-29 13:12:16 -06:00
Alex Gleason
2fc9988c06 reqmeister: middleware/cache, reqmeister, nip05, unfurl, refactor some code 2023-12-27 20:07:13 -06:00
Alex Gleason
52d39c7a56 debug: firehose, stats, sub 2023-12-27 19:35:06 -06:00
Alex Gleason
a32b0e7066 stats: clean up prev usage 2023-12-10 17:48:21 -06:00
Alex Gleason
4f79b7ec29 stats: handle follow/following counts 2023-12-10 17:42:44 -06:00
Alex Gleason
2d3f12dc72 stats: firstE -> firstTaggedId 2023-12-10 16:32:43 -06:00
Alex Gleason
733b8ba9c5 pubkey_stats --> author_stats 2023-12-10 16:04:52 -06:00
Alex Gleason
a48c1e51e1 stats: fix queries getting stuck 2023-12-10 15:33:01 -06:00
Alex Gleason
0f10a7c3a2 stats: refactor inReplyToId 2023-12-10 13:58:35 -06:00
Alex Gleason
7167553afe stats: switch to a system based on diff tuples 2023-12-10 13:53:51 -06:00
Alex Gleason
a8944dd7ea stats: support multiple values 2023-12-10 13:12:35 -06:00
Alex Gleason
eca923d7c8 stats: make the logic kind of make sense 2023-12-10 11:43:41 -06:00
Alex Gleason
bababe56f3 stats: update note count 2023-12-10 11:10:11 -06:00
Alex Gleason
de9fecaf65 Add a stats module (draft) 2023-12-07 18:49:10 -06:00