From: George Essig <george.essig@gmail.com>
To: K C Lau <kclau60@netvigator.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: SELECT DISTINCT Performance Issue
Date: Wed, 8 Jun 2005 09:51:11 -0500
Message-ID: <6744b385050608075132eeb8a6@mail.gmail.com> (raw)
In-Reply-To: <6.2.1.2.0.20050608221510.02c4e368@localhost>
References: <6.2.1.2.0.20050602190756.05ab2c70@localhost>
<6744b38505060806342e6a07d@mail.gmail.com>
<6.2.1.2.0.20050608221510.02c4e368@localhost>
On 6/8/05, K C Lau <kclau60@netvigator.com> wrote:
> Both keys are text fields. Does it make any difference if PlayerID were
> integer?
>
It can make a difference in speed and integrity. If the column is an
integer, the storage on disk could be smaller for the column and the
related indexes. If the the column is an integer, it would not be
possible to have a value like 'arbitrary value that looks nothing like
an integer'.
George Essig
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: george.essig@gmail.com, kclau60@netvigator.com
Subject: Re: SELECT DISTINCT Performance Issue
In-Reply-To: <6744b385050608075132eeb8a6@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox