pg.ddx.io pgsql-performance@postgresql.org mailing list archive
help / color / mirror / Atom feedJoining on text field VS int
2+ messages / 2 participants
[nested] [flat]
* Joining on text field VS int
@ 2010-01-07 04:21 Radhika S <rs88820@gmail.com>
0 siblings, 1 reply; 2+ messages in thread
From: Radhika S @ 2010-01-07 04:21 UTC (permalink / raw)
To: pgsql-performance
Hi,
I am going to test this out but would be good to know anyways. A large
table is joined to a tiny table (8 rows) on a text field. Should I be
joining on an int field eg: recid intead of name? Is the performance
affected in either case?
Thanks .
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Joining on text field VS int
@ 2010-01-07 18:52 Nikolas Everett <nik9000@gmail.com>
parent: Radhika S <rs88820@gmail.com>
0 siblings, 0 replies; 2+ messages in thread
From: Nikolas Everett @ 2010-01-07 18:52 UTC (permalink / raw)
To: Radhika S <rs88820@gmail.com>; +Cc: pgsql-performance
Joining via a tinyint or something will make your large table smaller which
is nice. Smaller tables = faster tables.
On Wed, Jan 6, 2010 at 11:21 PM, Radhika S <rs88820@gmail.com> wrote:
> Hi,
> I am going to test this out but would be good to know anyways. A large
> table is joined to a tiny table (8 rows) on a text field. Should I be
> joining on an int field eg: recid intead of name? Is the performance
> affected in either case?
> Thanks .
>
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2010-01-07 18:52 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2010-01-07 04:21 Joining on text field VS int Radhika S <rs88820@gmail.com>
2010-01-07 18:52 ` Nikolas Everett <nik9000@gmail.com>
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