From: Oliver Jowett <oliver@opencloud.com>
To: Jasper Potts <jasper@jasperpotts.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Select where id in (LARGE LIST) ?
Date: Sat, 30 Jul 2005 11:17:37 +1200
Message-ID: <42EAB911.9030700@opencloud.com> (raw)
In-Reply-To: <42EA4B90.4050606@jasperpotts.com>
References: <42EA4B90.4050606@jasperpotts.com>
Jasper Potts wrote:
> The best solution I have so far is to create a selection table and write
> the select out to that and perform a join but the 100,000 inserts are slow.
How are you constructing this table? If you use batched inserts with
autocommit off, it should be fairly fast; I get 8000+ inserts per second
over larger data sets.
Can you move the selection list into the DB semi-permanently? Really,
the underlying problem is that you need to move a 100,000-item list to
the database on every SELECT.. if you can have the list "already there"
it's going to be faster.
-O
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: oliver@opencloud.com, jasper@jasperpotts.com
Subject: Re: Select where id in (LARGE LIST) ?
In-Reply-To: <42EAB911.9030700@opencloud.com>
References: <42EA4B90.4050606@jasperpotts.com> <42EAB911.9030700@opencloud.com>
* 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