X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 15C2352986 for ; Fri, 29 Jul 2005 12:30:30 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 70964-02 for ; Fri, 29 Jul 2005 15:30:21 +0000 (GMT) Received: from out2.smtp.messagingengine.com (out2.smtp.messagingengine.com [66.111.4.26]) by svr1.postgresql.org (Postfix) with ESMTP id EAB805293B for ; Fri, 29 Jul 2005 12:30:20 -0300 (ADT) Received: from frontend3.messagingengine.com (frontend3.internal [10.202.2.152]) by frontend1.messagingengine.com (Postfix) with ESMTP id 6E406CC3860 for ; Fri, 29 Jul 2005 11:30:18 -0400 (EDT) X-Sasl-enc: QCE4mG4YngbOryZCvc9P3UOvIPbuqsTcg8bEcEmJy11M 1122651018 Received: from [192.168.5.130] (unknown [194.80.67.65]) by www.fastmail.fm (Postfix) with ESMTP id 60B801E1 for ; Fri, 29 Jul 2005 11:30:17 -0400 (EDT) Message-ID: <42EA4B90.4050606@jasperpotts.com> Date: Fri, 29 Jul 2005 16:30:24 +0100 From: Jasper Potts User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Select where id in (LARGE LIST) ? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 tagged_above=0 required=5 tests=FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200507/417 X-Sequence-Number: 13565 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