Open yashau opened 12 years ago
Hi,
What is the use case for adding pagination? For finding a torrent?
I usually find pagination pretty clunky, would something like a search bar with instant filtering of the listed torrents suit your needs?
E.g. you have the following torrent names:
ubuntu-server gentoo-hardened debian-sources debian-server debian-desktop
If you type d
into a search bar, it'd search for all torrents that start with d
, and only show them, this would happen via javascript, and wouldn't require server requests / responses so would be relatively instant
E.g.
Search: d
debian-sources
debian-server
debian-desktop
If you continue to type in it'd filter further, e.g.
Search: debian-d
debian-desktop
Basic wildcard searches and/or regular expressions could be pretty easily implemented too
Yes but the whole page is like a mile tall at the moment because I have 4000+ torrents in it and it's very unresponsive atm. I hope you get a drift of what I'm going about here.
I'd prefer pagination, but if there was anyway to reduce the number of items and increase performance via some other method, I'll gladly accept.
Ahh I understand, yeah I'll have a think about a nice way to do pagination
Ideally I'd still like to have ctrl+f search work, perhaps some sort of static loading for torrents past the 100 mark would work
There's also the possibility that the latency is coming from the rtorrent side, pyRT requests the entire list of torrents from rtorrent, 4000+ might well be a significant bottleneck. I'd have to do some benchmarking / testing to find out.
Yeah sorting + viewing a limited list by default would work great. If you want to search older stuff, you can have a more advanced search feature or something. I'm just brainstorming at the moment hoping it'll help you in any way.
I currently have around 4000 torrents in rTorrent. pyRT loads it up pretty fast but the page is extremely tall and is cumbersome. I want to suggest adding some basic pagination with a limit of a 100 or so torrents per page, if that's possible. Thank you.