I've been tasked with profiling a postgresql database. The first requirement is to see how fast records can be added, with all possible external bottlenecks removed, in order to find our theoretical limit.
At first I created a csv file with sample data and read it in with the COPY function. Now, all records are added via a function update_or_add()
. Is it possible to use COPY along with update_or_add()
or is there a better solution that I haven't considered?