That's just the query to select the highest rated albums in your collection (for the "Favourite Albums" section of the startup tab).<br><br>Have you tried running this query on your database from the mysql prompt?
<br><br><div><span class="gmail_quote">On 11/24/06, <b class="gmail_sendername">Andreas Heinz</b> <<a href="mailto:andi@a80.net">andi@a80.net</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
As nobody responded, i just enabled logging of my mysql server. the<br>following sql query seems to end in end endless loop:<br><br>  SELECT BINARY<br><a href="http://album.name">album.name</a>,<a href="http://album.id">album.id
</a>,Avg(COALESCE(NULLIF(statistics.percentage, 0), 50))<br>AS Avgstatisticspercentage,<a href="http://artist.id">artist.id</a> FROM tags LEFT JOIN album ON<br>album.id=tags.album LEFT JOIN artist ON artist.id=tags.artist
 LEFT JOIN<br>statistics ON statistics.url=tags.url AND statistics.deviceid =<br>tags.deviceid  WHERE 1 AND ( 1 AND <a href="http://album.name">album.name</a> <> 'Unknown' AND<br><a href="http://album.name">album.name
</a> <> ''  ) AND tags.sampler = 0  AND tags.deviceid IN<br>(1,2,3,4,-1) GROUP BY <a href="http://album.id">album.id</a>,<a href="http://artist.id">artist.id</a>,BINARY <a href="http://album.name">album.name</a> HAVING
<br>Count(<a href="http://album.id">album.id</a>)>3 AND Avg(statistics.percentage)>0 ORDER BY<br>Avgstatisticspercentage DESC  LIMIT 5 OFFSET 0<br><br>can someoney imagine why?<br><br>i did an example query to check if "
tags.url = statistics.url and<br>tags.deviceid = statistics.deviceid" gives any result and it does. so<br>i'm clueless where this database hang comes from :(<br><br>thanks<br>Andreas<br><br>Andreas Heinz wrote:<br>> Hi there,
<br>><br>> after i posted recently my problems moving a nfs share. i'm now at that<br>> point that i want to insert a backup of the stats, but if i do and start<br>> amarok, amarok hangs at the start and tells me that it needs long to
<br>> start, if maybe something ist wrong.<br>><br>> all the stats rows look like that one which amarok creates when i have<br>> an empty stats table and let amarok create a few new records, to test if<br>> amarok itself works. so the problem seems to be in the statsbackup.
<br>><br>> all device id point to device id 2 with is connected to /. path is also<br>> correct.<br>><br>> btw the mysql server is fully loaded when amarok hangs, so it seems to<br>> be a db problem right? maybe somekind of query that's not correct?
<br>> unfortunatly i dont know how to tell, at which query amarok hangs.<br>><br>> maybe someone of you has a clue what the problem could be? :)<br>><br>> thanks again<br>> Andreas<br>> _______________________________________________
<br>> Amarok mailing list<br>> <a href="mailto:Amarok@kde.org">Amarok@kde.org</a><br>> <a href="https://mail.kde.org/mailman/listinfo/amarok">https://mail.kde.org/mailman/listinfo/amarok</a><br>><br>_______________________________________________
<br>Amarok mailing list<br><a href="mailto:Amarok@kde.org">Amarok@kde.org</a><br><a href="https://mail.kde.org/mailman/listinfo/amarok">https://mail.kde.org/mailman/listinfo/amarok</a><br></blockquote></div><br><br clear="all">
<br>-- <br>"Gentlemen, you can't fight in here! This is the War Room" - The President (Dr. Strangelove)