pymedusa / Medusa

Automatic Video Library Manager for TV Shows. It watches for new episodes of your favorite shows, and when they are posted it does its magic.
https://pymedusa.com
GNU General Public License v3.0
1.8k stars 276 forks source link

Poor performance / page load times of /home #8542

Closed sammcj closed 1 year ago

sammcj commented 4 years ago

Describe the bug

Loading /home (with the list of shows) takes between 5.2 and 8.5s.

I have been discussing and sharing database and log dumps with @p0psicles on this issue.

To Reproduce Steps to reproduce the behaviour:

  1. Install medusa from source / git on a CentOS 7 host OS and Python 3.6.8 (latest stable python3 for CentOS 7)
  2. Add between 250-350 shows to medusa
  3. Load the home page
  4. Notice that the page takes a long time to finish loading

It does not make any difference which browser you use on the client side but I've tried: Firefox 81 on a new i9 MBP, Chrome stable on the same machine, Safari on iOS 13 and 14 on an iPhone 11 Pro.

Note: I have also had a friend who is able to reproduce the poor performance - although not quite as bad, at around 2.5-3s - running the latest Medusa Docker image and on a wired network with both Firefox and Chrome.

Expected behaviour

The /home page should not take longer than 1-2 seconds at most to load.

Screenshots

Medusa (please complete the following information):

Debug logs (at least 50 lines): General > Advanced Settings > Enable debug

Additional context

The more columns you unselect (as pictured below) the faster the page loads, for example with no columns ticked the page loads in just over 1s, but with all ticked it can take as long as 8.5s.

columns

I've tried:

firefox_perf_graph_medusa

Rouzax commented 1 year ago

Is this not planned?

sammcj commented 1 year ago

I gave up and moved to sonarr which is a lot faster in all regards.