FreeTubeApp / FreeTube

An Open Source YouTube app for privacy
https://freetubeapp.io/
GNU Affero General Public License v3.0
13.36k stars 825 forks source link

[Bug]: Huge user playlists (in the 1000s and 10,000s range) take a long time to load and display, leaving the Playlist view does so as well, and so does viewing the next video in the playlist #4578

Open Gorrrg opened 9 months ago

Gorrrg commented 9 months ago

Guidelines

Describe the bug

  1. Have a significantly huge playlist, mine has over 17,000 items
  2. View that playlist
  3. Wait and wait

And...

  1. Click a video from that playlist
  2. Wait and wait and wait (takes as long as loading the playlist to leave the playlist)

And..

  1. Watch a video in that playlist to the end
  2. Wait and wait and wait
  3. Next video plays

Expected Behavior

I've recently switched to a newer snapshot (v3847) and it has the new playlist system. Now my Favorites were converted to a playlist called Favorites. On the older version this single Playlist was displaying instantly, and now with the new system, every single video in the playlist seems to get processed. And I just expect the top most items showing up as fast as they used to. I also often switch between Subscription view and Playlist view and this waiting time just breaks my workflow, distracting me.

What's even worse is that if I want to watch a video by clicking on it from that playlist it again takes this huge amount of time until the Video view is loaded, the entire playlist gets processed again. And when I've finished watching one video loading the next also takes seconds. Making the entire thing the opposite of enjoyable to use.

Of course, I could just create a new Favorites playlist, but eventually I end up with hundreds of playlists. And maybe I want to keep those videos in that playlist so it's easier to find videos I have watched half a year or a year ago.

I wonder if those playlists are saved as a JSON file? Maybe it's time to switch to a database format?

Issue Labels

usability issue

FreeTube Version

v0.19.1-nightly-3847 Beta

Operating System Version

Windows 11 Pro, 23H2

Installation Method

.exe

Primary API used

Local API

Last Known Working FreeTube Version (If Any)

No response

Additional Information

No response

Nightly Build

github-actions[bot] commented 5 months ago

This issue is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 4 months ago

This issue is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 3 months ago

This issue is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 2 months ago

This issue is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 1 month ago

This issue is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 1 week ago

This issue is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 7 days.