-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Description
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:
- Optimizing queries. HP Vertica only needs to parse the statement once.
- Preventing SQL injection attacks. A SQL injection attack occurs when user input is either incorrectly filtered for string literal escape characters embedded in SQL statements or user input is not strongly typed and thereby unexpectedly run. Since a prepared statement is parsed separately from the input data, there is no chance the data can be accidentally executed by the database.
- Binding direct variables to return columns. By pointing to data structures, the code doesn't have to perform extra transformations.
Metadata
Metadata
Assignees
Labels
No labels