pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nikolas Everett <nik9000@gmail.com>
To: Radhika S <rs88820@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Joining on text field VS int
Date: Thu, 7 Jan 2010 13:52:40 -0500
Message-ID: <d4e11e981001071052l1a5b03e9mfd12b2579aa50815@mail.gmail.com> (raw)
In-Reply-To: <a222cb861001062021l3f29bdc6kb19a3970089b40ae@mail.gmail.com>
References: <a222cb861001062021l3f29bdc6kb19a3970089b40ae@mail.gmail.com>

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 .
>

view thread (2+ messages)

Message-ID: <d4e11e981001071052l1a5b03e9mfd12b2579aa50815@mail.gmail.com>
Permalink:  ../d4e11e981001071052l1a5b03e9mfd12b2579aa50815@mail.gmail.com/
Also on:    postgresql.org/message-id/d4e11e981001071052l1a5b03e9mfd12b2579aa50815@mail.gmail.com

 · 

reply

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: nik9000@gmail.com, rs88820@gmail.com
  Subject: Re: Joining on text field VS int
  In-Reply-To: <d4e11e981001071052l1a5b03e9mfd12b2579aa50815@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