perf: make up to 5 calls to database in hydrateEvents & remove old hydrate functions

This commit is contained in:
P. Reis
2024-04-22 19:51:29 -03:00
parent ed08ac7c17
commit b77c8a00cd
11 changed files with 71 additions and 156 deletions

View File

@@ -51,7 +51,6 @@ async function renderStatuses(c: AppContext, filters: NostrFilter[]) {
.then((events) =>
hydrateEvents({
events,
relations: ['author', 'author_stats', 'event_stats', 'repost', 'quote_repost'],
storage: eventsDB,
signal,
})