On The Web by Ircmaxell
GNU/GPL PageCache Joomla! APC php5 Lighttpd! Redhat
Home arrow Forum
Saturday, 17 May 2008
 
 
Featured Site
Main Menu
Home
Articles
Services
Portfolio
Version Information
Bug Tracker
F.A.Q.
Downloads
Forum
Contact Us
Text Link Ads
Latest Version
Feed Icon Page Cache 1.0.8 stable
Release Date: 2007-06-11
Donate!
Login
Syndicate
On The Web Forums
Welcome, Guest
Please Login or Register.
Lost Password?
Re:Tuning MySql (1 viewing)
_GEN_GOTOBOTTOM Post Reply

TOPIC: Re:Tuning MySql

#670
phillips_chris (User)
Junior Boarder
Posts: 6
graphgraph
Click here to see the profile of this user
Tuning MySql 2007/06/02 21:02 Karma: 0  
Hi,

Once I realised that the standard Joomla cache wasn't really effective and that one of the reasons that my VPS was not as fast as I expected it to be was the slowness of accessing MySql, it became obvious that I needed something like Page Cache. It is very effective, but since my day job is designing using Oracle I'm left wondering whether the standard out of the box Joomla database access is tuned effectively.

I need to learn a lot more about MySQL but there seems to be little on the web about tuning MySQL for use with Joomla. I know from experience that one can make really dramatic improvements to SQL statements run time in Oracle predominantly through the use of indexes. However what little I have found by googling about MySql performance seems to concentrate on altering MySql variables on the server. You can do a similar thing to Oracle based systems but that is a something you do after you've already tuned using indexes (and varying the way the SQL statement is constructed).

Am I missing something or is it possible to see which SQL statements are running slowly on a Joomla installation and is it possible to easily add indexes. I have read about 'Explain', which is similar to Oracle's 'Explain Plan', but I can't see how to query for existing indexes or how to create them.

I'll continue to investigate this issue because it seems that there may be scope for improving MySQL perfomance.

As an aside is Postgres any better from the tuning perspective?

Regards,
Chris
Regards,
Chris
  The administrator has disabled public write access.
#671
ircmaxell (Admin)
Admin
Posts: 444
graph
Click here to see the profile of this user
Re:Tuning MySql 2007/06/03 00:49 Karma: 8  
Well, I'll tell you this from my experience with MySQL... Joomla's queries (from the core), are pretty well tuned. Take a look at http://dev.mysql.com/doc/refman/5.0/en/explain.html. Turn on debuging, and you'll get a list of every query that's run. Then just put explain infront of it and run it. To see the table details, use http://dev.mysql.com/doc/refman/5.0/en/describe.html. From my experience, the only inefficient queries are done via OpenSEF (or any SEF component for that matter). Add these to lines under [mysqld] in my.cnf to log slow queries (will log all queries that take more than 1 second to execute.
Code:

 log-slow-queries long_query_time 



The more common problem is not the queries themselves, but the number of them. The best thing to tweak is the number of queries that are run...
  The administrator has disabled public write access.
#672
phillips_chris (User)
Junior Boarder
Posts: 6
graphgraph
Click here to see the profile of this user
Re:Tuning MySql 2007/06/03 10:18 Karma: 0  
Hi,

Thanks for that, I obviously came to the right place to ask the question!

Thanks,
Chris
Regards,
Chris
  The administrator has disabled public write access.
#679
ircmaxell (Admin)
Admin
Posts: 444
graph
Click here to see the profile of this user
Re:Tuning MySql 2007/06/04 02:10 Karma: 8  
Glad to hear it. Let me know if there is anything else you would like to know...
  The administrator has disabled public write access.
#888
bobthebob01 (User)
Senior Boarder
Posts: 17
graphgraph
Click here to see the profile of this user
Re:Tuning MySql 2007/07/26 20:36 Karma: 0  
Hi there,

i just came across this thread.

you mentioned that OpenSEF has inefficient quieries like many other SEF component.
Have you tried sh404SEF? http://extensions.siliana.net/en/sh404SEF-and-url-rewriting/sh404SEF-URL-rewriting-for-Joomla- Virtuemart-SEF-URL-SEO.html

they advertise that it barely adds sql queries compared to the joomla core SEF

what is your thoughts on this one?

julien
  The administrator has disabled public write access.
#890
ircmaxell (Admin)
Admin
Posts: 444
graph
Click here to see the profile of this user
Re:Tuning MySql 2007/07/27 01:20 Karma: 8  
Well, I need to test it. I am slowly (with the help of a few other "unnamed" people) getting a new performance site off the ground. Believe me, I will be reviewing this component thoroughly...
  The administrator has disabled public write access.
#893
bobthebob01 (User)
Senior Boarder
Posts: 17
graphgraph
Click here to see the profile of this user
Re:Tuning MySql 2007/07/27 05:46 Karma: 0  
great, that's nice.

becuase so, every time people talk about performance, it's just words. So who to believe????
but you came and gave result and shown graph. and that becomes almost undeniable. I mean unless you would start lying on the number.....but where are we going if can't trust !!!

So if your site becomes some kind of benchmark and/or test for component, that would be very cool.

you can start a standard like: "passed the ircmaxell test".
lolol but seriously, what do you think
  The administrator has disabled public write access.
#895
ircmaxell (Admin)
Admin
Posts: 444
graph
Click here to see the profile of this user
Re:Tuning MySql 2007/07/27 06:27 Karma: 8  
I'm not going to comment until the details are all worked out...
  The administrator has disabled public write access.
#898
bobthebob01 (User)
Senior Boarder
Posts: 17
graphgraph
Click here to see the profile of this user
Re:Tuning MySql 2007/07/27 06:32 Karma: 0  
lololololol

"WE CAN MAKE YOU TALK IRCMAXELL !!!" just kidding. no problem, i understand.

let's build up some curiosity around this

cheers
  The administrator has disabled public write access.
_GEN_GOTOTOP Post Reply
get the latest posts directly to your desktop
Mortgage - Flights - Car Insurance - Credit Cards
 
Top! Top!
Generated in 0.15931701660156 Seconds