Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^4: DBI placeholders and like statement

by jfroebe (Parson)
on Jun 19, 2013 at 17:48 UTC ( #1039813=note: print w/replies, xml ) Need Help??


in reply to Re^3: DBI placeholders and like statement
in thread DBI placeholders and like statement

Depending on the DBMS, you could give it an index hint: from tableA (index ndx). You are correct though, most optimizers would simply give it a hard coded selectivity rating which almost always guarantees that an index won't be chosen for that particular column.

Jason L. Froebe

Blog, Tech Blog

  • Comment on Re^4: DBI placeholders and like statement

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1039813]
help
Chatterbox?
[choroba]: bare SQL seems to work differently. Failing a prepared statement doesn't abort the transaction. So it's a behaviour of the DBD driver
[choroba]: and smells like a bug

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2017-09-19 14:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (222 votes). Check out past polls.

    Notices?