From: tomas@nocrew.org
To: pgsql-odbc@postgresql.org
Subject: Re: Bad performance with large objects
Date: 18 Jun 2004 14:52:41 +0200
Message-ID: <80n0316nae.fsf@junk.nocrew.org> (raw)
In-Reply-To: <80r7sd6sh0.fsf@junk.nocrew.org>
References: <80r7sd6sh0.fsf@junk.nocrew.org>
tomas@nocrew.org (Tomas Skäre) writes:
> I'm using psqlodbc (latest from CVS) together with PostgreSQL 7.4.3 in
> a project. In it, I have a table that uses large objects (type
> "lo"). Functions for lo was imported from the contrib/lo-script.
>
> The table looks like this:
>
> timestamp | bigint | not null
> jobid | bigint | not null
> objectid | bigint | not null
> class | integer | not null
> field | character varying | not null
> data | lo |
...
> So, why does it take so much longer from ODBC, than from psql (even if
> I pick out the bytea-data)? The program and postgresql both run on the
> same machine, so there is no network delay. I've measured that it's
> not my program that is slow, it's the ODBC calls.
An addition to this:
If I change the table from lo to bytea, the program is able to read
the data much much faster. But, psqlodbc doesn't seem to like bytea
when writing to the database, so it's only the fetching that works
with this.
Tomas
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-odbc@postgresql.org
Cc: tomas@nocrew.org
Subject: Re: Bad performance with large objects
In-Reply-To: <80n0316nae.fsf@junk.nocrew.org>
References: <80r7sd6sh0.fsf@junk.nocrew.org> <80n0316nae.fsf@junk.nocrew.org>
* 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