pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ravi Chemudugunta <chemuduguntar@gmail.com>
To: Ravi Chemudugunta <chemuduguntar@gmail.com>
To: pgsql-performance@postgresql.org
Subject: Re: Performance Implications of Using Exceptions
Date: Tue, 1 Apr 2008 14:23:00 +1300
Message-ID: <7a4208ef0803311823x55228b10k8f7996a4e7056229@mail.gmail.com> (raw)
In-Reply-To: <20080401005235.GM4999@tamriel.snowman.net>
References: <7a4208ef0803311720s1dac8362gff2477d3dc534968@mail.gmail.com>
	<20080401005235.GM4999@tamriel.snowman.net>

Hi, thanks for the quick reply.

>  In general I would recommend that you benchmark them using
>  as-close-to-real load as possible again as-real-as-possible data.

I am running a benchmark with around 900,000 odd records (real-load on
the live machine :o ) ... should show hopefully some good benchmarking
results for the two methods.

>  That would be in the eye of the beholder, generally.  Given the lack of
>  complexity, I don't think 'cleanness' in this case really matters all
>  that much.

I would like to make a comment that is that the only downside I saw of
using the exception approach was that if for some reason someone
forgot to add the unique constraint to the table, it would be a bit of
a nightmare-ness.  (I am porting some code into the server where the
schema does not have these constraints setup, only in the devel
database).

Will reply back with my conclusions, I am expecting a large difference.

Cheers,

ravi



view thread (11+ messages)  latest in thread

Message-ID: <7a4208ef0803311823x55228b10k8f7996a4e7056229@mail.gmail.com>
Permalink:  ../7a4208ef0803311823x55228b10k8f7996a4e7056229@mail.gmail.com/
Also on:    postgresql.org/message-id/7a4208ef0803311823x55228b10k8f7996a4e7056229@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: chemuduguntar@gmail.com
  Subject: Re: Performance Implications of Using Exceptions
  In-Reply-To: <7a4208ef0803311823x55228b10k8f7996a4e7056229@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