I am trying to improve the performance of row insertion in a postgresql 11 db using standard java prepared statements. It is standing on top of debian 11 in a VM environnement. I am using pentaho data integration and a simple table output step. I want to make my transformation database transactional so using batch update is not an option. I have created tables without index, nor constraints and made then unlogged. They have a few columns. I am currently getting row insert top speed of 40 r/s per connection. I can increase this speed by using parallelism and each connection tends to reach this speed.
The server is running smoothly using 3% cpu and about 10% RAM.
How can I increase the "per connection" row insert performance ?
Thanks for you help
EXPLAIN (ANALYZE, BUFFERS)outputfor such an insert?