Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 88300 invoked from network); 20 Jan 2010 09:20:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 20 Jan 2010 09:20:45 -0000 Received: (qmail 47249 invoked by uid 500); 20 Jan 2010 09:20:44 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 47071 invoked by uid 500); 20 Jan 2010 09:20:43 -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 47063 invoked by uid 99); 20 Jan 2010 09:20:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jan 2010 09:20:43 +0000 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=RCVD_NUMERIC_HELO,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gcaddu-derby-user@m.gmane.org designates 80.91.229.12 as permitted sender) Received: from [80.91.229.12] (HELO lo.gmane.org) (80.91.229.12) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jan 2010 09:20:35 +0000 Received: from list by lo.gmane.org with local (Exim 4.50) id 1NXWjO-0006Eo-9Y for derby-user@db.apache.org; Wed, 20 Jan 2010 10:20:06 +0100 Received: from 193.132.237.3 ([193.132.237.3]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 20 Jan 2010 10:20:06 +0100 Received: from richard.stout by 193.132.237.3 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 20 Jan 2010 10:20:06 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: derby-user@db.apache.org From: Richard Subject: Large multi record inserts into a large database. Date: Wed, 20 Jan 2010 09:15:49 +0000 (UTC) Lines: 22 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 193.132.237.3 (Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)) Sender: news Sorry, I am new to this gmane thing so I have posted this message in the developers section aswell by mistake. I am writing a test database application to see if derby is suitable for the job. I have a very large dataset (>100m records in the main table) which grows at more that 1m records per day. I want to insert these records quickly each day and then perform various queries on the data. I have tested the insert performance with no indexes using prepared statements and only committing after each 1000 records and I get excellent insert rates of about 3000 records/second. When I add a simple index based on two 10 character columns (varchar(10)) the peformance of the inserts dives to about 30 records/second which is a much greater degradation than I expected. Can anyone tell me where I might be going wrong? I am running the embedded version of Java DB. My record (row) length is about 80 bytes made of 8 strings (varchar(10)). The index I created is on two of these strings. I have tried altering the pageSize and the pageCacheSize to no avail. Any help will be geatly appreciated.