Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

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

by Marshall (Canon)
on Feb 14, 2012 at 01:58 UTC ( [id://953585]=note: print w/replies, xml ) Need Help??


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

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.

Replies are listed 'Best First'.
Re^4: same query, different execution, different performance
by Anonymous Monk on Feb 14, 2012 at 10:20 UTC

    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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://953585]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (8)
As of 2024-03-28 12:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found