I am writing a program in Java that uses the JDBC driver with Postgresql. I am using an API which when called, returns data in a string like so:
id=-870229851 date = finished-20130501 15:13:07-20130502 15:13:07 open=-1.0 high=-1.0 low=-1.0 close=-1.0 volume=-1 count=-1 WAP=-1.0 hasGaps=false
Most of these names are a column in my Postgresql db (and I can make all of them a column if necessary), but I was wondering what is the most efficient way to insert this into Postgresql?
Before I write a function to parse each title / value, I'm hoping that Postgresql has some way of handling data like this efficiently.
Can someone please shed some light?
my Postgresql version is 9.2 and my Java is 1.7