Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: same query, different execution, different performance

by Anonymous Monk
on Feb 14, 2012 at 01:40 UTC ( #953583=note: print w/ replies, xml ) Need Help??


in reply to Re: same query, different execution, different performance
in thread same query, different execution, different performance

The 2 queries are quite different.

No, they're identical


Comment on Re^2: same query, different execution, different performance
Re^3: same query, different execution, different performance
by Marshall (Prior) on Feb 14, 2012 at 01:58 UTC
    Gee, at the moment I don't know how to explain it better - sorry if my English is confusing. Look again and see what is known when the prepare method is called. Read tye's post and look at the link which gives exactly the parameter needed to cause more to happen at execute() time rather than using the pre-prepared not so good default strategy - when preparing the statement, the DB just does a lot better if it knows "like something starting with abc" rather than "like something". The default is to use the info and strategy decided upon when the prepare statement was executed, but that behavior can be over-ridden.

      Gee, at the moment I don't know how to explain it better - sorry if my English is confusing. ...

      That is understandable. The sql is the query, sql, structured query language, its literally the same string :)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://953583]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (10)
As of 2014-10-02 02:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (42 votes), past polls