Garayed.com  

Go Back   Garayed.com > mySQL
FAQ Members List Calendar Search Today's Posts Mark Forums Read


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-20-2006, 02:33 AM
Ignoramus23298
 
Posts: n/a
Default Sped up my site algebra.com by 3 times.

Went through most of my MySQL calls (I used mod_perl on linux).

Cleaned up everything, removed unnecessary queries, made MySQL do all
joins (including outer joins), instead of doing sub-searches on my
part, replaced constructs such as:

if select count(*) > 0
then update
else insert

with INSERT ... ON DUPLICATE KEY UPDATE etc.

The result is a cool 3-4x speedup on most pages, as measured by Apache
Bench (ab).

So... it pays to look at database usage closely!

MANY THANKS TO ALL FOR YOUR RECENT SUGGESTIONS!!!

i

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 10:41 AM.




LinkBacks Enabled by vBSEO 3.0.0 © 2007, Crawlability, Inc.