From: Kees Kling <ckling@planet.nl>
To: pgsql-jdbc@postgresql.org
Subject: storing large arrays of floats
Date: Fri, 02 Nov 2007 21:05:37 +0100
Message-ID: <472B8311.6080505@planet.nl> (raw)
HI
I have to store an array of 50,000 floats in a postgres database. At
firts I tried to store it as float[], but that take s to much time for
jdbc to convert the data so that it can be stored in the database.
Next I tried to store it as byte[] array in a BYTEA column. This worked
ok, but when I inspect the data at the serverside the datasize increased
with a factor 1,5 to 2 and I see a lot of escape(\0) characters. What I
mean to do is storing the bunch of data and retrieving subselections of
the data with the help of Plperl fucntions. Now I can't restore the data
at serverside. What is the clue? Do I have to store the data with
another function as "preparedstatement.setBytes" or must I use another
columntype.
Thanks
Kees Kling
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: ckling@planet.nl
Subject: Re: storing large arrays of floats
In-Reply-To: <472B8311.6080505@planet.nl>
References: <472B8311.6080505@planet.nl>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox