I have been reviewing some old code in preparation for a re-write, and one of the code patterns that I've been seeing is a preponderance of bind operations for each and every query and command that eventually goes to a DB2 database.
My understanding of bind is that it's very useful when one is doing repetitive operations. However, in this case the SELECTs and UPDATEs are one-time operations. Thus it's my opinion that these bind operations aren't really necessary, and in fact my be slower than just using placeholders.
Opinions? Thoughts?
In reply to Is bind useful for one-time queries and commands? by talexb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |