Re: performance versus order of fields in row

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: stimits(at)comcast(dot)net
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: performance versus order of fields in row
Date: 2003-11-25 23:43:52
Message-ID: 9488.1069803832@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"D. Stimits" <stimits(at)comcast(dot)net> writes:
> I'm not looking for an exact answer here, but instead something more
> "rule of thumb". If I have a table with many fields, and I retrieving
> small groups of fields during a SELECT, whereby the groups of fields are
> indexed and/or clustered, will I get a faster select in the left-most
> fields, or the right-most fields? Or will it not matter?

Fields earlier in the table definition (further to the left) are
marginally faster to access than ones further to the right. I doubt it
would be real noticeable unless you had hundreds of fields altogether.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Uwe C. Schroeder 2003-11-26 00:07:32 Re: Lock strategies!
Previous Message Christopher Browne 2003-11-25 23:20:29 Re: PostgreSQL certifications?