Ticket #217 (closed Defect: invalid)
Large database slowing down UI
|Reported by:||snown||Owned by:|
I have a collection of videos about 4,500 large. This size seems to be slowing down the reaction time of the user interface.
I've noticed that whenever I am done watching a video, or if I've just changed something about that video (as in marked it watched, or as a favorite) that the User interface seems to stop all together for a period of time. My assumption is that what it's doing in this time is attempting to write to the massive metaData.plist and modify the record of that video to mark it as watched or favorite.
Anyway I'm not exactly sure how to resolve this, I would think breaking the metaData up a little bit so that the application doesn't have to search the entire plist to find the entry it's looking for (maybe one for TVShows one for Movies, or one per Network Mount?). Or maybe there would be a way to record changes in a temp file, and then try to implement them on down times (kind of in the background). Or (and this is a long shot) if there was a way to use a real database system on the AppleTV -- like mySQL, SQLite, Oracle... whatever -- instead of a plist (which wasn't really designed as a database solution) that might speed things up; but again I don't even know if that's possible.
Sorry for the long winded ticket, but thanks for reading it and for your help.