pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jasper Potts <jasper@jasperpotts.com>
To: pgsql-jdbc@postgresql.org
Subject: Select where id in (LARGE LIST) ?
Date: Fri, 29 Jul 2005 16:30:24 +0100
Message-ID: <42EA4B90.4050606@jasperpotts.com> (raw)

I am working on a gui application which has a list of ids of selected 
items. To perform an operation on the selected items I do a 
"select/update .. where id in(...)". There seems to be a limit of 
100-200 items in the list. Is there a way of doing this with large 
lists, maybe 10,000, 100,000 long?

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.

The ids are int8(long), so not talking large amounts of data, couple Mb 
at most. Database and client running on same machine over localhost.

Many Thanks

Jasper



view thread (13+ messages)  latest in thread

Message-ID: <42EA4B90.4050606@jasperpotts.com>
Permalink:  ../42EA4B90.4050606@jasperpotts.com/
Also on:    postgresql.org/message-id/42EA4B90.4050606@jasperpotts.com

 · 

reply

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: jasper@jasperpotts.com
  Subject: Re: Select where id in (LARGE LIST) ?
  In-Reply-To: <42EA4B90.4050606@jasperpotts.com>
  References: <42EA4B90.4050606@jasperpotts.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