c++ - What is the fastest way to insert data into postgres using pqxx -
i'm using pqxx
api access postgres
c++ code. i'm trying insert large amount of data , finding performance isn't enough. i've tried several things , nothing giving performance need.
i've been trying use pqxx::pipeline
asyn inserts, seams this, can either wait until end of inserts commit transaction in case run risk of losing large amount of data if process crashes before commit. or can commit (like every 5 minutes) in case have blocking call every 5 minutes takes quite large amount of time.
is there way without having transaction, or have asynchronous commits transaction?
Comments
Post a Comment