pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mladen Gogala <mladen.gogala@vmsinfo.com>
To: sthomas@peak6.com <sthomas@peak6.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: David Greco <David_Greco@harte-hanks.com>
Cc: pgsql-performance@postgresql.org <pgsql-performance@postgresql.org>
Subject: Re: Real vs Int performance
Date: Thu, 27 Jan 2011 10:11:12 -0500
Message-ID: <4D418B10.7050008@vmsinfo.com> (raw)
In-Reply-To: <4D418177.1040401@peak6.com>
References: <CDFA9340E95A764E9366B4EDF3A43125BCACF7E68D@VA3DIAXVS091.RED001.local>
	<26917.1296079932@sss.pgh.pa.us>
	<CDFA9340E95A764E9366B4EDF3A43125BCACF7E9EC@VA3DIAXVS091.RED001.local>
	<21353.1296137891@sss.pgh.pa.us>
	<4D418177.1040401@peak6.com>

On 1/27/2011 9:30 AM, Shaun Thomas wrote:
> I'm not sure about orders of magnitude on the storage/index side, but my
> tests gave us a 10% boost if just the keys are switched over to INT or
> BIGINT.

Well, it depends on what you're doing. Searching by an integer vs. 
searching by a text string will probably not make much of a difference. 
However, if you are calculating sums or averages, there will be a huge 
difference.

-- 
Mladen Gogala
Sr. Oracle DBA
1500 Broadway
New York, NY 10036
(212) 329-5251
www.vmsinfo.com




view thread (8+ messages)  latest in thread

Message-ID: <4D418B10.7050008@vmsinfo.com>
Permalink:  ../4D418B10.7050008@vmsinfo.com/
Also on:    postgresql.org/message-id/4D418B10.7050008@vmsinfo.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: mladen.gogala@vmsinfo.com, sthomas@peak6.com, tgl@sss.pgh.pa.us, David_Greco@harte-hanks.com
  Subject: Re: Real vs Int performance
  In-Reply-To: <4D418B10.7050008@vmsinfo.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