wvanbergen / node-vertica

Pure javascript Vertica database client. Except it is written in CoffeeScript.
MIT License
44 stars 30 forks source link

Support for prepared statements #62

Open cristoirmac opened 7 years ago

cristoirmac commented 7 years ago

I think prepared statements could help our performance, especially by eliminating the parse/optimizer step since we execute thousands of queries of the same structure but different values.

Server-side prepared statements are useful for:

https://my.vertica.com/docs/7.1.x/HTML/Content/Authoring/ConnectingToHPVertica/ClientDriverMisc/UsingPreparedStatements.htm

wvanbergen commented 7 years ago

I am happy to merge support for prepared statements, but I am not working on this library myself anymore.

FWIW, if preventing SQL injection is what you are after: it's also possible to do parameterization of queries client-side, without implementing prepared statements which is a lot more work.