[SQL] 2 tables or two db?

2009-06-18 Thread ivan marchesini
Dear postgres users,

Suppose I have two tables of data.

suppose the two table are really similar in dimensions 

suppose they will receive the same number and type of queries.

in tems of performance (velocity of answer) it is better to place the
two tables in the same db or into two different db?

may be it is a stupid question, but

many many thanks...

 Ivan






-- 
Sent via pgsql-sql mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql


Re: [SQL] 2 tables or two db?

2009-06-18 Thread Rob Sargent

ivan marchesini wrote:

Dear postgres users,

Suppose I have two tables of data.

suppose the two table are really similar in dimensions 


suppose they will receive the same number and type of queries.

in tems of performance (velocity of answer) it is better to place the
two tables in the same db or into two different db?

may be it is a stupid question, but

many many thanks...

 Ivan




  


My guess is that only physical separation will have any positive impact 
otherwise the two datasets are competing for the same resources.  At 
least separate discs, controllers to avoid disc contention.  Separate 
postgres instances to allow separate caches (in affect separate memory).


--
Sent via pgsql-sql mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql