ditto/packages
Chad Curtis baa7968305 Optimize top_authors materialized view for better performance
- Limit materialized view to authors with followers_count > 0 and top 10k records
- Add proper indexes (search GIN, pubkey B-tree, followers_count DESC)
- Use CONCURRENTLY for non-blocking refreshes in cron job
- Reduces sorting overhead and memory usage during refresh

The original materialized view was expensive because it sorted all authors
regardless of follower count. This optimization reduces the dataset to a
manageable size while maintaining search functionality.

Fixes expensive query issue in top_authors materialized view.
2025-09-14 21:11:14 +00:00
..
captcha Lowercase all captcha bg filenames for suitability in a URL path 2025-03-03 19:37:35 -06:00
cashu refactor: make GET wallet a bit faster 2025-04-08 12:14:47 -03:00
conf remove relative import from ditto/utils in DittoConf 2025-04-29 23:32:37 +05:30
db Optimize top_authors materialized view for better performance 2025-09-14 21:11:14 +00:00
ditto Optimize top_authors materialized view for better performance 2025-09-14 21:11:14 +00:00
lang Set all packages to version 0.1.0 2025-03-03 19:31:41 -06:00
mastoapi Merge branch 'main' into mint-cashu 2025-04-08 12:16:53 -03:00
metrics Add subscriptions bytes metrics 2025-04-29 13:24:36 -05:00
nip98 Set all packages to version 0.1.0 2025-03-03 19:31:41 -06:00
policies Set all packages to version 0.1.0 2025-03-03 19:31:41 -06:00
ratelimiter Set all packages to version 0.1.0 2025-03-03 19:31:41 -06:00
transcode Set all packages to version 0.1.0 2025-03-03 19:31:41 -06:00
translators Set all packages to version 0.1.0 2025-03-03 19:31:41 -06:00
uploaders Set all packages to version 0.1.0 2025-03-03 19:31:41 -06:00