Re: Joining on text field VS int

From: Nikolas Everett <nik9000(at)gmail(dot)com>
To: Radhika S <rs88820(at)gmail(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Joining on text field VS int
Date: 2010-01-07 18:52:40
Message-ID: d4e11e981001071052l1a5b03e9mfd12b2579aa50815@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)gmail(dot)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 .
>

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Dave Crooke 2010-01-07 20:13:08 Re: pg_connect takes 3.0 seconds
Previous Message Brian Cox 2010-01-07 18:43:25 Re: query looping?