X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 4BBEE32A805 for ; Fri, 15 Oct 2004 01:52:44 +0100 (BST) 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 18222-02 for ; Fri, 15 Oct 2004 00:52:38 +0000 (GMT) Received: from sue.samurai.com (sue.samurai.com [205.207.28.74]) by svr1.postgresql.org (Postfix) with ESMTP id 8096C32A407 for ; Fri, 15 Oct 2004 01:52:40 +0100 (BST) Received: from localhost (localhost [127.0.0.1]) by sue.samurai.com (Postfix) with ESMTP id D706D197A4; Thu, 14 Oct 2004 20:52:40 -0400 (EDT) Received: from sue.samurai.com ([127.0.0.1]) by localhost (sue.samurai.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 42357-01-6; Thu, 14 Oct 2004 20:52:40 -0400 (EDT) Received: from [61.88.101.19] (unknown [61.88.101.19]) by sue.samurai.com (Postfix) with ESMTP id 309B519792; Thu, 14 Oct 2004 20:52:38 -0400 (EDT) Subject: Re: Performance vs Schemas From: Neil Conway To: Igor Maciel Macaubas Cc: pgsql-performance@postgresql.org In-Reply-To: <003101c4b21d$10f00e60$6801a8c0@providerst.local> References: <003101c4b21d$10f00e60$6801a8c0@providerst.local> Content-Type: text/plain Message-Id: <1097801555.29932.11.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Fri, 15 Oct 2004 10:52:35 +1000 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at mailbox.samurai.com X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200410/202 X-Sequence-Number: 8678 On Fri, 2004-10-15 at 04:38, Igor Maciel Macaubas wrote: > I have around 100 tables, and divided them in 14 different schemas, > and then adapted my application to use schemas as well. > I could percept that the query / insert / update times get pretty much > faster then when I was using the old unique schema, and I'd just like > to confirm with you if using schemas speed up the things. Is that true > ? Schemas are a namespacing technique; AFAIK they shouldn't significantly affect performance (either positively or negatively). > What about indexed views, does postgresql supports it? No, you'll need to create indexes on the view's base tables. -Neil