A new front-end interface powered by Bitmagnet #276
journey-ad
started this conversation in
Show and tell
Replies: 1 comment
-
This is a copy of #275. Thanks to @mgdigital for the response. I will research it later. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
I made a new web UI using Next.js and NextUI. The repo is here: https://github.com/journey-ad/Bitmagnet-Next-Web. Maybe someone will find it interesting.
It query the DB directly because the original Bitmagnet graphql API didn't meet my needs. I needed accurate total counts for pagination, but The graphql API returned inaccurate numbers. Also, I needed hash queries for torrent info.
The graphql API was slow (over 1 minute for 1.8 million torrents). So, I used the
pg_trgm
extension and added indexes to thetorrents.name
andtorrent_files.path
columns:This reduced the response time to a few hundred milliseconds ~ a few seconds, which should be good enough for personal use.
I am not a professional backend developer and don't have extensive PostgreSQL knowledge, just sharing some recent work. Hope it helps someone.
Beta Was this translation helpful? Give feedback.
All reactions