refresh_data slow on big playlists #262
Owner
```
File: /home/kae/mm/app/playlistmodel.py
Function: refresh_data at line 991
Line # Hits Time Per Hit % Time Line Contents
==============================================================
991 @line_profiler.profile
992 def refresh_data(self, session: db.session, dummy_for_profiling=None) -> None:
993 """Populate dicts for data calls"""
994
995 # Populate self.playlist_rows with playlist data
996 109 14764688.0 135455.9 0.1 self.playlist_rows.clear()
997 32512 950608686.0 29238.7 3.2 for p in PlaylistRows.get_playlist_rows(session, self.playlist_id):
998 32403 3e+10 875031.5 96.7 self.playlist_rows[p.row_number] = RowAndTrack(p)
```
bug
label
Speed up moving rows
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?