2013-01-07, 02:54
Hi everyone,
First of all, huge shout-out to everyone involved with XBMC as a whole. Just awesome stuff.
I am a long time XBMC user, but a very new Raspberry Pi user, having just got mine last week. So far, everything with Raspbmc has been great - with one exception: the speed of the movie library browser.
I have posted this on the Raspbmc forums too, but it may be something with XBMC core that the Raspberry Pi is just highlighting due to its slower processor speed, so I thought I'd ask over here too.
While I know that there are plenty of threads out there detailing how you speed things up when you have MySQL involved, I have the opposite problem. And I can't seem to find any solutions or comments on it!
Looking at the debug.log, when I first boot the Pi and go into the Movie Library Title list, I get the following:
All seems fine and, even though there are 665 movies, it only takes 4-5 seconds and then the screen is displayed.
However, once this initial load is done - i.e. the data is saved from the MySQL central database to the XBMC local SQLite one on the Pi, the next time I go in to the Movies view, I get the following:
See the time gap between the first and last line - that would be 40 seconds. May not sound like a lot, but it sure feels like a lot! Especially as it is every time I go into the movie library view.
I'm at a loss to understand this. The initial load from the MySQL database into the SQLite and then the display takes way less time than any view of the same local database from that point on.
On my Core i5 PC, obviously there is next to no delay as it can process locally faster than over the network. But on the comparatively under-powered Pi, it's obviously struggling.
Does anyone have any tips on how to fix this? Or, dare I say it, how to get XBMC to just look at the MySQL database and not the local SQLite one? Like it does on first boot?
Any help is really appreciated.
P.S. for the tech details, I'm running a 512MB ver B Raspberry Pi with a Class 10 SDHC 16GB card. It's connected to the network via a cable to a gigabit switch. The MySQL server is running on a ReadyNAS. I'm running the nightly builds of Raspbmc, and I'm using XBMC Frodo RC 3.
First of all, huge shout-out to everyone involved with XBMC as a whole. Just awesome stuff.
I am a long time XBMC user, but a very new Raspberry Pi user, having just got mine last week. So far, everything with Raspbmc has been great - with one exception: the speed of the movie library browser.
I have posted this on the Raspbmc forums too, but it may be something with XBMC core that the Raspberry Pi is just highlighting due to its slower processor speed, so I thought I'd ask over here too.
While I know that there are plenty of threads out there detailing how you speed things up when you have MySQL involved, I have the opposite problem. And I can't seem to find any solutions or comments on it!
Looking at the debug.log, when I first boot the Pi and go into the Movie Library Title list, I get the following:
Code:
RunQuery took 2349 ms for 665 items query: select * from movieview
08:17:39 T:3038351360 DEBUG: Saving fileitems [videodb://1/2/]
08:17:40 T:3038351360 DEBUG: -- items: 665, sort method: 0, ascending: false
All seems fine and, even though there are 665 movies, it only takes 4-5 seconds and then the screen is displayed.
However, once this initial load is done - i.e. the data is saved from the MySQL central database to the XBMC local SQLite one on the Pi, the next time I go in to the Movies view, I get the following:
Code:
08:18:31 T:3038351360 DEBUG: Loading fileitems [videodb://1/2/]
08:18:31 T:2790732864 DEBUG: RunQuery took 14 ms for 0 items query: select * from musicvideoview ORDER BY dateAdded desc, idMVideo desc LIMIT 10
08:18:31 T:2965681216 DEBUG: CecLogMessage - key auto-released: select (0)
08:18:31 T:2965681216 DEBUG: PushCecKeypress - received key b duration 1206
08:18:51 T:2802070592 DEBUG: Thread Jobworker 2802070592 terminating (autodelete)
08:18:51 T:2827322432 DEBUG: Thread Jobworker 2827322432 terminating (autodelete)
08:18:51 T:2936628288 DEBUG: Thread Jobworker 2936628288 terminating (autodelete)
08:19:11 T:3038351360 DEBUG: -- items: 665, directory: videodb://1/2/ sort method: 0, ascending: false
See the time gap between the first and last line - that would be 40 seconds. May not sound like a lot, but it sure feels like a lot! Especially as it is every time I go into the movie library view.
I'm at a loss to understand this. The initial load from the MySQL database into the SQLite and then the display takes way less time than any view of the same local database from that point on.
On my Core i5 PC, obviously there is next to no delay as it can process locally faster than over the network. But on the comparatively under-powered Pi, it's obviously struggling.
Does anyone have any tips on how to fix this? Or, dare I say it, how to get XBMC to just look at the MySQL database and not the local SQLite one? Like it does on first boot?
Any help is really appreciated.
P.S. for the tech details, I'm running a 512MB ver B Raspberry Pi with a Class 10 SDHC 16GB card. It's connected to the network via a cable to a gigabit switch. The MySQL server is running on a ReadyNAS. I'm running the nightly builds of Raspbmc, and I'm using XBMC Frodo RC 3.