Top.Mail.Ru
PostgreSQL and JDBC: striving for high performance (Vladimir Sitnikov) | | PGConf.Russia

title

text

Vladimir  Sitnikov
Vladimir Sitnikov
18:00 05 February
22 min

PostgreSQL and JDBC: striving for high performance

Common Java wisdom is to use PreparedStatements and Batch DML in order to achieve top performance. It turns out one cannot just blindly follow the best practices. In order to get high throughput, you need to understand the specifics of the database in question, and the content of the data.

In the talk we will see how proper usage of PostgreSQL protocol enables high performance operation while fetching and storing the data. We will see how trivial application and/or JDBC driver code changes can result in dramatic performance improvements. We will examine how server-side prepared statements should be activated, and discuss pitfalls of using server-prepared statements.

Slides

Video

Other talks