X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 98E19D1E9BA; Tue, 23 Mar 2004 05:20:31 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 61011-06; Tue, 23 Mar 2004 01:20:29 -0400 (AST) Received: from davinci.ethosmedia.com (server228.ethosmedia.com [209.128.84.228]) by svr1.postgresql.org (Postfix) with ESMTP id 05DA6D1E104; Tue, 23 Mar 2004 01:20:28 -0400 (AST) Received: from [63.195.55.98] (HELO 192.168.1.29) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.1.8) with ESMTP id 4674847; Mon, 22 Mar 2004 21:21:44 -0800 From: Josh Berkus Reply-To: josh@agliodbs.com Organization: Aglio Database Solutions To: "Subbiah, Stalin" , "'pgsql-admin@postgresql.org'" Subject: Re: [PERFORM] Databases Vs. Schemas Date: Mon, 22 Mar 2004 21:19:50 -0800 User-Agent: KMail/1.5.4 Cc: "'pgsql-performance@postgresql.org'" References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200403222119.50331.josh@agliodbs.com> X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200403/327 X-Sequence-Number: 12896 Stalin, > We are evaluating the options for having multiple databases vs. schemas on a > single database cluster for a custom grown app that we developed. Each app > installs same set of tables for each service. And the service could easily > be in thousands. so Is it better to have 1000 databases vs 1000 schemas in a > database cluster. What are the performance overhead of having multiple > databases vs. schemas (if any). I'm leaning towards having schemas rather > than databases but i would like to get others opinion on this. Appreciate > your reply. No performance difference AFAIK. The real question is whether you have to have queries joining several "databases". If yes, use Schema; if no, use databases. -- -Josh Berkus Aglio Database Solutions San Francisco