From: | Morgan Curley <mcurley(at)e4media(dot)com> |
---|---|
To: | <pgsql-general(at)postgresql(dot)org>, <pgsql-sql(at)postgresql(dot)org> |
Subject: | Query Approach and performance |
Date: | 2001-08-17 07:29:36 |
Message-ID: | 4.3.2.7.2.20010817031239.028d90d0@e4media.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-sql |
Hey everyone,
On average, are multiple simple queries better performance-wise than joins?
i.e.
select A.col1 from table1 A
select B.col2 from table2 B where B.col1 = A.col1
etc
vs
select A.col1, B.col2 from table1 A, table2 B where B.col1 = A.col1
Are joins better for small/large numbers of tables?
Is there a diff?
My approach to date has been to keep queries as simple as possible, and
when I see a need for complicated joins, I create a view and then do simple
queries against that.
Does pg cache queries like Oracle does so that repeated queries don't need
to go through the compile phase and run faster? Is this configurable?
Thanks,
Morgan
From | Date | Subject | |
---|---|---|---|
Next Message | Ivan Babikov | 2001-08-17 08:09:33 | Re: Perfomance decreasing |
Previous Message | Tille, Andreas | 2001-08-17 07:18:33 | Configuration of ODBC-driver |
From | Date | Subject | |
---|---|---|---|
Next Message | Christophe Labouisse | 2001-08-17 08:22:44 | pg_ctl start hangs |
Previous Message | Horst Herb | 2001-08-16 22:24:51 | Fwd: [SQL] how to use record type |