Home arrow Forum
myLANsite forum
Welcome, Guest
Please Login or Register.    Lost Password?
Re:Performace with 1000+ teams? (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:Performace with 1000+ teams?
#358
wiebbe (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Re:Performace with 1000+ teams? 2 Years, 2 Months ago Karma: 0  
well, i did found out what the problem was.

There are NO indexes setup on the regular database setup. Because of this this query:

SELECT c. * , COUNT( m.id ) AS members
FROM _teams AS c
LEFT JOIN _teams_members AS m ON m.teamid = c.id
GROUP BY c.id
ORDER BY c.name ASC
LIMIT 0 , 20

this one really hanged, TAKING 17 SECONDS!!

i used, explain to see what to do. I added an index on m.id and on c.id. Now the query is ALOT faster (taking only 0.3 seconds)

So if this helps anyone..
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
      Topics Author Date
    thread link
Performace with 1000+ teams?
wiebbe 2006/07/31 20:33
    thread link
thread linkthread link Re:Performace with 1000+ teams?
wiebbe 2006/08/24 22:23
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop
© 2008 myLANsite - Lanparty components for Joomla
Joomla! is Free Software released under the GNU/GPL License.