3 ms·
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-plann
by floatboth 9y ago
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
- mohaine 9y agoTo 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.
- deleted 9y ago[deleted]
- tyingq 9y agoIt happens. https://bugs.mysql.com/bug.php?id=73056 https://bugs.mysql.com/bug.php?id=73056