Re: How to insert a bulk of data with unique-violations very fast

From: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
To: Torsten Zühlsdorff <foo(at)meisterderspiele(dot)de>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: How to insert a bulk of data with unique-violations very fast
Date: 2010-06-06 17:46:52
Message-ID: AANLkTim36aTPinMgAQ9bUcf0AD4S1YKRrXfApHERRd7U@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Sun, Jun 6, 2010 at 6:02 AM, Torsten Zühlsdorff
<foo(at)meisterderspiele(dot)de> wrote:
> Scott Marlowe schrieb:
> Thank you very much for your example. Now i've got it :)
>
> I've test your example on a small set of my rows. While testing i've
> stumpled over a difference in sql-formulation. Using except seems to be a
> little slower than the more complex where not in (subquery) group by. Here
> is my example:

Yeah, to get a good idea you need a more realistic example. Build
some tables with millions of rows using generate_series() and then
test against those.

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Pierre C 2010-06-06 22:35:18 Re: How to insert a bulk of data with unique-violations very fast
Previous Message Andy Colson 2010-06-06 12:45:34 Re: How to insert a bulk of data with unique-violations very fast