Closed journey-ad closed 1 week ago
Hi, thanks for sharing - your frontend looks great and I hope people can start building apps and alternate frontends.
Can I give you some feedback:
I needed accurate total counts for pagination, but The graphql API returned inaccurate numbers
Please see here for the reasoning behind this: https://bitmagnet.io/faq.html#why-doesnt-bitmagnet-show-me-exactly-how-many-torrents-it-has-indexed - you can get accurate counts by setting the aggregationBudget
very high in the graphql query, but bear in mind this will be slow when there are many rows to count. People may commonly have up to 20 million torrents indexed, and returning accurate counts just isn't feasible performance-wise for this size of index.
The graphql API was slow (over 1 minute for 1.8 million torrents)
Can you confirm which query was slow? Did you set an appropriate limit?
So, I used the pg_trgm extension and added indexes to the torrents.name and torrent_files.path columns
The tsv
field on the torrent_contents
table is intended for full text search, it already has an index.
Finally, I'd encourage you to remove the copyrighted content from your screenshots and replace with some public domain works to avoid unwanted attention.
Please goto #276