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?
#352
wiebbe (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Performace with 1000+ teams? 2 Years ago Karma: 0  
Yo, i was wondering if there are any tests done performance wise, i have 1400+ teams in my database now, but loading the team page takes a looooong time or even times out.

I have been trying to find out where the performance hits lies but i have no idea..

The connection table to the users contains over 7379 records.

anyone?
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#358
wiebbe (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Re:Performace with 1000+ teams? 1 Year, 12 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.
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.