calaldees / KaraKara

Karaoke Event System - Attendees can view and queue tracks from their mobile phones
https://karakara.uk
GNU General Public License v3.0
29 stars 9 forks source link

Load track data into player2 up-front #62

Closed shish closed 2 years ago

shish commented 3 years ago

90% of queue_items.json is track data[1] - if we loaded all of track_list.json up-front, and made it so that queue_items only contained track_id fields to cross-reference, that'd make the updates much smaller

[1] Testing with a 3 hour long queue, queue_items.json is 250KB, with track data removed it goes down to 22KB

(This approach would be incompatible with browser1, because browser1 requires that all data to render a single page is fetched in one go, no cross-referencing - so it'd need to happen after browser2 becomes official)

calaldees commented 2 years ago

58 #91

This ticket proposes loading track_list.json into player2 like browser2 does. Track data is now available via a static file (this dramatically improves performance) when website is deprecated, track data will not accessible via a track api.

shish commented 2 years ago

This is done now - tracks.json contains all the track data, queue.json only contains track IDs