Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 45127 invoked from network); 12 Nov 2008 13:59:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Nov 2008 13:59:54 -0000 Received: (qmail 83308 invoked by uid 500); 12 Nov 2008 14:00:01 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 83287 invoked by uid 500); 12 Nov 2008 14:00:01 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 83276 invoked by uid 99); 12 Nov 2008 14:00:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Nov 2008 06:00:01 -0800 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [192.18.43.24] (HELO sca-ea-mail-1.sun.com) (192.18.43.24) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Nov 2008 13:58:40 +0000 Received: from dm-uk-01.uk.sun.com ([129.156.101.115]) by sca-ea-mail-1.sun.com (8.13.7+Sun/8.12.9) with ESMTP id mACDxM97002278 for ; Wed, 12 Nov 2008 13:59:23 GMT Received: from barman.uk.sun.com (barman.UK.Sun.COM [129.156.132.12]) by dm-uk-01.uk.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.2) with ESMTP id mACDxMWf006121 for ; Wed, 12 Nov 2008 13:59:22 GMT Received: from vpn-129-150-121-41.uk.sun.com ([129.150.121.41]) by barman.uk.sun.com with esmtp (Exim 4.42) id 1L0GJ7-0002u8-3x for derby-user@db.apache.org; Wed, 12 Nov 2008 14:02:57 +0000 Message-ID: <491AE134.7090806@sun.com> Date: Wed, 12 Nov 2008 13:59:16 +0000 From: Alan Burlison User-Agent: Thunderbird 2.0.0.17 (X11/20081014) MIME-Version: 1.0 To: derby-user@db.apache.org Subject: btree overflow during insert Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org We are doing inserts with Derby 10.4.2.0 into a table that has an index on it, and during the insert we get the following errors: *** Appending local Error for batch element #84: Limitation: Record of a btree secondary index cannot be updated or inserted due to lack of space on the page. Use the parameters derby.storage.pageSize and/or derby.storage.pageReservedSpace to work around this limitation.*** *** Next Exception java.sql.SQLException: Error for batch element #155: Limitation: Record of a btree secondary index cannot be updated or inserted due to lack of space on the page. Use the parameters derby.storage.pageSize and/or derby.storage.pageReservedSpace to work around this limitation.*** Appending nestedError for batch element #84: Limitation: Record of a btree secondary index cannot be updated or inserted due to lack of space on the page. Use the parameters derby.storage.pageSize and/or derby.storage.pageReservedSpace to work around this limitation. We've tried removing the index and re-adding it after the inserts, but the result is the same. To stop this happening we have to up the derby.storage.pageSize parameter to 16k, which is too big for what is effectively an OLTP database, and the documentation for derby.storage.pageReservedSpace says that it only applies to tables, bot indexes. Is this a bug, and if not, what should we do to avoid it, other than increasing the DB page size to 16K? Thanks, -- Alan Burlison --