View Single Post
Old 03-15-2010, 03:56 PM  
borked
Totally Borked
 
borked's Avatar
 
Industry Role:
Join Date: Feb 2005
Posts: 6,284
:2cents if you're serious about mysql, do not inadvertently add a tab in your queries

One of the harder debugs, but for all you coder folk out there, did you know that adding a \t (tab) in your mysql queries in PHP will slow shit riiiiiiiiight down in complex queries?

I didn't, now I do

that's a typo problem I'll never make again!!

What I don't get is on the command line, mysql doesn't allow tabs (not even copy/paste), yet PHP will do something with tabs that allows the command to execute, albeit at much reduced efficiency.

A lesson learnt that was the difference between constant load 80 and load 8.

Rack that into the gfy education sub-series
__________________

For coding work - hit me up on andy // borkedcoder // com
(consider figuring out the email as test #1)



All models are wrong, but some are useful. George E.P. Box. p202
borked is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote