Search Postgresql Archives

Re: reasonable limit to number of schemas in a database?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I currently am using a normal system like the one you suggest, in which every user puts their data into a single schema, and uses keys to keep things separate. The problem comes in database upgrades. They're not common, but as I ramp up the number of users, it becomes increasingly infeasible to upgrade everybody at once. But everybody using the same schema has to be on the same schema version.

Each session will probably touch most if not all of the tables eventually, but will only touch a dozen or so from each schema with any regularity.

Is the 300k files/directory my only real bottleneck, or should I worry about catalog cache and lock table space too? How would I overcome those last two?

On Apr 24, 2007, at 10:14 PM, Tom Lane wrote:

The number of schemas doesn't scare me so much as the number of tables.
Are you using a filesystem that can cope gracefully with 300K files in
one directory?  How many of these tables do you anticipate any one
session touching? (That last translates to catalog cache and lock table
space...)

Generally, when someone proposes a scheme like this, they are thinking
that N identical tables are somehow better than one table with an
additional key column. The latter is usually the better design, unless
you have special requirements you didn't mention.

			regards, tom lane



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux