Posts: 10
Joined: Mar 2010
Reputation:
0
I'm experiencing slow responses using the MySQL databases under XBMC Dharama (~20-30 secs to show the Movies list)
One of the tips that comes up frequently on these forums is to "skip-name-resolve" on the MySQL database.
I've got MySQL running on a Synology NAS, controlled through PhpMyAdmin, and I cannot for the life of me figure out where I'm supposed to add that code.
Can anyone shed some light on this?
Many thanks, Rich
Posts: 59
Joined: May 2010
Reputation:
0
Is there any way to see the queries XBMC runs? Is it in the debug log? Do these delays persist when you access the database via localhost and not remotely (where mysql is running)?
Posts: 10
Joined: Mar 2010
Reputation:
0
Thanks Aenima99x... I am trying to create a my.cnf file like yours but am unable to do this.
I've logged in through ssh (and also tried telnet) through putty. I've then opened up an editor: vi /etc/my.cnf. When I try to save the file however it says permission denied (I've tried this as both 'root' and 'admin')
When I try to open/save files using WinSCP i get:
"Cannot execute SCP to start transfer. Please make sure that SCP is installed on the server and path to it is included in PATH. You may also try SFTP instead of SCP.
Command failed with return code 127." (I've tried SCP, FTP and SFTP to do this)
Any suggestions would be much apprecitaed it. I've trawled Google for what the issues I'm having with modifying files on my Synology server in this way but not finding anything useful.
Posts: 4
Joined: Jan 2011
Reputation:
0
Aenima99x - That made a massive difference thanks! I went from 20 second queries to practically instant artist lookup by adding the index.
Would be great to get this into the default build - any reason it shouldn't?
Posts: 175
Joined: Jun 2010
Reputation:
1
odt_x
Senior Member
Posts: 175
Thanks for all the info here. Really helped with browsing the music library. One thing though I'm not sure if it's normal, but the following operation still takes 5 seconds even after creating all 3 indexes:
15:49:40 T:2752 M:1990627328 DEBUG: CMusicDatabase::GetArtistsNav query: select * from artist where (idArtist IN (select album.idArtist from album) or idArtist IN (select exartistalbum.idArtist from exartistalbum join album on album.idAlbum = exartistalbum.idAlbum where album.strExtraArtists != '')) and artist.strArtist != ""
15:49:45 T:2752 M:1990705152 DEBUG: Time to retrieve artists from dataset = 5059
Is this normal? There's 1481 items displayed.
Posts: 1
Joined: Jun 2011
Reputation:
0
So I was hitting an obvious 5 second delay on every MySQL connection. The resolution was MySQL server was timing out on attempting a reverse lookup of the client. I put an entry for client IP in /etc/hosts in my case and DB became instant.
Posts: 2
Joined: Sep 2010
Reputation:
0
2011-10-30, 06:31
Hello,
Been having a similar problem - using MySQL running on Synology DS410.
I used telnet for connecting to my NAS, but couldn't find my.cnf file in /etc.
Do I need to create it? What parameters should I put in it?
BTW - what is the command to restart the MySQL service on the NAS (I'm not familiar with Linux commands...)
Thanks!