Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
floatboth
· 9y ago · 0 comments
OMG. How would escaping be faster than prepared statements if prepared statements are literally cached in the database server instead of re-parsing and re-planning every time?! o_0
Comments
[–]
mohaine
9y ago
To be fair, it can be faster if the binds cause the plan to be much more efficient. I've had to remove binds before for this very reason.
Note that this was exactly once in 20 years.
[–]
tyingq
9y ago
It happens.
https://bugs.mysql.com/bug.php?id=73056