One other possible reason for splitting the table up in two chunks is to 
grant different rights on the 2 sets of columns.

Susan Cassidy




Bill Moseley <[EMAIL PROTECTED]> 
Sent by: [EMAIL PROTECTED]
05/15/2007 09:44 AM

To
Postgres General <pgsql-general@postgresql.org>
cc

Subject
Re: [GENERAL] Performance issues of one vs. two split tables.







Sorry, I don't mean to drag this thread out much longer.  But, I have
one more question regarding joins.

Say I have a customer table and an order table.  I want a list of all
order id's for a given customer.

    SELECT o.id
    FROM order o
    JOIN customer c on o.customer = c.id

Does that bring into memory all columns from both order and customer?
Maybe that's not a good example due to indexes.

See, I've seen this splitting of one-to-one tables a number of time
(such as the user and user_preferences example) and I'm not sure if
that's just poor schema design, premature optimization, or someone
making smart use of their knowledge of the internal workings of
Postgresql....



-- 
Bill Moseley
[EMAIL PROTECTED]


---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

               http://archives.postgresql.org/



----------------------------------------------------------------------------------------------
Simply protected storage solutions ensure that your information is
automatically safe, readily available and always there, visit us at 
http://www.overlandstorage.com
----------------------------------------------------------------------------------------------

Reply via email to