pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Cherio <cherio@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Joining tables by UUID field - very slow
Date: Mon, 27 Feb 2012 10:25:31 -0500
Message-ID: <13339.1330356331@sss.pgh.pa.us> (raw)
In-Reply-To: <CAKHqFk+BOgDe=3B9P0mvtviTN+bcO1XvL0k50BVQqiVWRjF7eg@mail.gmail.com>
References: <CAKHqFk+BOgDe=3B9P0mvtviTN+bcO1XvL0k50BVQqiVWRjF7eg@mail.gmail.com>

Cherio <cherio@gmail.com> writes:
> This statement takes over 6 times longer than a similar statement against
> the same table except the join is done by a integer field, e.g.

Could we see EXPLAIN ANALYZE data for both cases?

How are you representing the UUIDs, exactly (ie what's the column data
type)?

			regards, tom lane



view thread (3+ messages)

Message-ID: <13339.1330356331@sss.pgh.pa.us>
Permalink:  ../13339.1330356331@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/13339.1330356331@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, cherio@gmail.com
  Subject: Re: Joining tables by UUID field - very slow
  In-Reply-To: <13339.1330356331@sss.pgh.pa.us>

* 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