Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 6F4CB9FB252 for ; Thu, 23 Nov 2006 18:51:05 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 55685-09 for ; Thu, 23 Nov 2006 22:51:00 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from mail01.enterprisedb.com (mail01.enterprisedb.com [63.246.7.168]) by postgresql.org (Postfix) with ESMTP id 575099FB251 for ; Thu, 23 Nov 2006 18:50:55 -0400 (AST) thread-index: AccPUda13D7qlX1QSUqva+EKrS0RjQ== Received: from [192.168.1.34] ([82.27.227.157]) by mail01.enterprisedb.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.1830); Thu, 23 Nov 2006 17:50:56 -0500 Message-ID: <456625C5.1050601@enterprisedb.com> Date: Thu, 23 Nov 2006 22:50:45 +0000 Content-Class: urn:content-classes:message Importance: normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.2757 From: "Heikki Linnakangas" User-Agent: Thunderbird 1.5.0.7 (X11/20060927) MIME-Version: 1.0 To: "Gopal" Cc: Subject: Re: Postgres scalability and performance on windows References: In-Reply-To: Content-Type: text/plain; format=flowed; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 23 Nov 2006 22:50:56.0453 (UTC) FILETIME=[D63E6750:01C70F51] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/206 X-Sequence-Number: 21976 Gopal wrote: > Functions : Simple coordinate reprojection and intersection query + > inner join of table1 and table2. > > I think I have all the right indexes defined and indeed the performance > for queries under low loads is fast. Can you do a EXPLAIN ANALYZE on your queries, and send the results back to the list just to be sure? > SQL server caches all the data in memory which is making it faster(uses > about 1.2GB memory- which is fine). > > But postgres has everything spread across 10-15 processes, with each > process using about 10-30MB, not nearly enough to cache all the data and > ends up doing a lot of disk reads. I don't know Windows memory management very well, but let me just say that it's not that simple. > I've read that postgres depends on OS to cache the files, I wonder if > this is not happenning on windows. Using the Task Manager, or whatever it's called these days, you can see how much memory is used for caching. -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com