Skip to content

Use PrepareStatement instead of Statement when executing sql queries

Hiro requested to merge optimize-servers into master

PreparedStatement is more optimized when it comes to system resources than Statement.

A prepared statement is a server-side object linked to database object ID designed to enhance system performance. When executed, the specified prepared statement is parsed and analyzed and then rewritten according to the specified parameters. Prepared statements are used to avoid having the same statement repeatedly parsed, increasing system performance.

Merge request reports

Loading