Skip to content

R and PostgreSQL - Writing data?

1 message · NISHIYAMA Tomoaki

#
Dear Kevin,

In case you do need computation to construct the data to store in the
database that is under normal work load, it is unlikely that 
the way the SQL is issued dominate the overall time.
The DBMS have to lock the record while it is accepting an access from
one client, and during that time other clients should just wait.
You can still let postgres generate a valid id by a specialized table
and use it to specify the primary key.  
There are quite a lot more of ways than what you state "I need".

So, while implementing prepared statement more useful is welcome,
I recommend not go such detail for now for your aim.
More important are to analyze what is the real bottleneck.