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 04C3C564B8; Thu, 12 May 2005 12:14:42 -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 59911-04; Thu, 12 May 2005 15:14:40 +0000 (GMT) Received: from koolancexeon.g2switchworks.com (mail.g2switchworks.com [63.87.162.25]) by svr1.postgresql.org (Postfix) with ESMTP id 0C63C5649D; Thu, 12 May 2005 12:14:39 -0300 (ADT) Received: mail.g2switchworks.com 10.10.1.8 from 10.10.1.37 10.10.1.37 via HTTP with MS-WebStorage 6.5.6944 Received: from state.g2switchworks.com by mail.g2switchworks.com; 12 May 2005 10:14:38 -0500 Subject: Re: Using PgSQL in high volume and throughput problem From: Scott Marlowe To: Nikola Milutinovic Cc: 'PGSQL-Novice' , PgSQL JDBC In-Reply-To: <4282EAF2.3000305@ev.co.yu> References: <4282EAF2.3000305@ev.co.yu> Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: <1115910878.3868.257.camel@state.g2switchworks.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Thu, 12 May 2005 10:14:38 -0500 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200505/61 X-Sequence-Number: 12892 On Thu, 2005-05-12 at 00:34, Nikola Milutinovic wrote: > Hi all. > > This might be OT, especiallz since I do not have the actual data for > volume and throughput, but can give only "bystander" impression. > > I might get on-board a project that deals with a high volume and high > throughput data crunching task. It will involve data pattern recognition > and similar stuff. The project is meant to run in Java and use Berkeley > DB, probably Apache Lucene. > > Now, this is the juicy part. Due to high volume and high throughput, > data is actually stored in ordinary files, while Berkeley DB is used > only for indexes to that data! > > Like I've said, I don't have the figures, but I was told that that was > the only way to make it work, everything else failed to perform. My > question, in your oppinion, can PgSQL perform in such a scenario? Using > JDBC, of course. > > I do realize that PgSQL gives a lot of good stuff, but here the speed is > of essence. The previous project has stripped Java code to the bare > bones, regarding data structures, just to make it faster. This sounds like a batch processing job, and those are often handled much more quickly by hand written perl / java / php / yourfavlanghere. Is there a need for concurrent updates / selects on these data? If not, then batch processing and tossing the results into a database may well be the best way to do it.