2012-02-06, 20:15
My media is housed on a diy WHS machine along with symlinks to artwork, as well as a MySQL database used to synch the library across all my xbmc clients dotted around the house.
With over 30,000 episodes spanning over 900 series, plus some 2000 movies in my collection, it seems to be taking ages for the library to load. For example, it can take in excess of 3 minutes for the TV Shows library screen to show up. Drilling down/up the series/season screens can take another minute or so. Once an episode has finished playing, it can take another minute or so for XBMC to return to the library screen.
All my clients are wired over gigabit ethernet, and playback of media works just fine (including the use of transport controls). My gut instinct is that the bottleneck is on the MySQL side of things, but I could be wrong. I installed MySQL using the add-in available from MediaSmartServer website, and I think it uses a bespoke my.ini file for WHS, so I wonder whether that’s the problem. Below are excerpts from said ini file:
[mysqld]
port = 3306
socket = /tmp/mysql.sock
skip-name-resolve
skip-locking
key_buffer_size = 16K
max_allowed_packet = 1M
table_open_cache = 4
sort_buffer_size = 64K
read_buffer_size = 256K
read_rnd_buffer_size = 256K
net_buffer_length = 2K
thread_stack = 128K
[myisamchk]
key_buffer_size = 8M
sort_buffer_size = 8M
I’ve also checked/added indexes to idFile and idMovie on the movie table, as well as idShow on the tvshow table. Also I’ve noticed that all the text fields are using latin1_swedish_ci rather than latin1_general_ci collation (I’ve never even been to Sweden, so I’ve got no idea how this happened)? Could that be causing a problem? Is there a way of converting it to latin1_general_ci without losing the database? Is there something else I should be doing, like adding more indexes and/or changing the setting of the ini file? Thanks.
With over 30,000 episodes spanning over 900 series, plus some 2000 movies in my collection, it seems to be taking ages for the library to load. For example, it can take in excess of 3 minutes for the TV Shows library screen to show up. Drilling down/up the series/season screens can take another minute or so. Once an episode has finished playing, it can take another minute or so for XBMC to return to the library screen.
All my clients are wired over gigabit ethernet, and playback of media works just fine (including the use of transport controls). My gut instinct is that the bottleneck is on the MySQL side of things, but I could be wrong. I installed MySQL using the add-in available from MediaSmartServer website, and I think it uses a bespoke my.ini file for WHS, so I wonder whether that’s the problem. Below are excerpts from said ini file:
[mysqld]
port = 3306
socket = /tmp/mysql.sock
skip-name-resolve
skip-locking
key_buffer_size = 16K
max_allowed_packet = 1M
table_open_cache = 4
sort_buffer_size = 64K
read_buffer_size = 256K
read_rnd_buffer_size = 256K
net_buffer_length = 2K
thread_stack = 128K
[myisamchk]
key_buffer_size = 8M
sort_buffer_size = 8M
I’ve also checked/added indexes to idFile and idMovie on the movie table, as well as idShow on the tvshow table. Also I’ve noticed that all the text fields are using latin1_swedish_ci rather than latin1_general_ci collation (I’ve never even been to Sweden, so I’ve got no idea how this happened)? Could that be causing a problem? Is there a way of converting it to latin1_general_ci without losing the database? Is there something else I should be doing, like adding more indexes and/or changing the setting of the ini file? Thanks.