pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gregory Maxwell <gmaxwell@gmail.com>
To: Ragnar <gnari@hive.is>
Cc: Ron <rjpeace@earthlink.net>
Cc: pgsql-performance@postgresql.org
Cc: pgsql-hackers@postgresql.org
Subject: Re: qsort again (was Re: [PERFORM] Strange Create
Date: Fri, 17 Feb 2006 17:36:10 -0500
Message-ID: <e692861c0602171436y3f627d32y1df152732da6936c@mail.gmail.com> (raw)
In-Reply-To: <1140204169.32324.108.camel@localhost.localdomain>
References: <43F38867.6010701@gpdnet.co.uk>
	<20060216144833.GG26127@svana.org>
	<7.0.1.0.2.20060216100954.035b5ee0@earthlink.net>
	<7.0.1.0.2.20060216110249.0395d2b0@earthlink.net>
	<87FA36B4-CD97-4CF5-B9B3-02FEEA25CC95@slamb.org>
	<7.0.1.0.2.20060216133801.03a7ab50@earthlink.net>
	<7.0.1.0.2.20060217004822.039d46a8@earthlink.net>
	<1140168261.32324.70.camel@localhost.localdomain>
	<7.0.1.0.2.20060217072626.039c5f20@earthlink.net>
	<1140204169.32324.108.camel@localhost.localdomain>

On 2/17/06, Ragnar <gnari@hive.is> wrote:
> Say again ?
> Let us say you have 1 billion rows, where the
> column in question contains strings like
> baaaaaaaaaaaaaaa....aaa
> baaaaaaaaaaaaaaa....aab
> baaaaaaaaaaaaaaa....aac
> ...
> not necessarily in this order on disc of course
>
> The minimum value would be keyed as 00000001h,
> the next one as 00000002h and so on.
>
> Now insert new value 'aaaaa'
>
> Not only will you have to update 1 billion records,
> but also all the values in your map.
>
> please explain

No comment on the usefulness of the idea overall.. but the solution
would be to insert with the colliding value of the existing one lesser
than it..

It will falsly claim equal, which you then must fix with a second
local sort which should be fast because you only need to sort the
duplicates/false dupes.  If you insert too much then this obviously
becomes completely useless.



view thread (56+ messages)  latest in thread

Message-ID: <e692861c0602171436y3f627d32y1df152732da6936c@mail.gmail.com>
Permalink:  ../e692861c0602171436y3f627d32y1df152732da6936c@mail.gmail.com/
Also on:    postgresql.org/message-id/e692861c0602171436y3f627d32y1df152732da6936c@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: gmaxwell@gmail.com, gnari@hive.is, rjpeace@earthlink.net, pgsql-hackers@postgresql.org
  Subject: Re: qsort again (was Re: [PERFORM] Strange Create
  In-Reply-To: <e692861c0602171436y3f627d32y1df152732da6936c@mail.gmail.com>
  References: <43F38867.6010701@gpdnet.co.uk> <20060216144833.GG26127@svana.org> <7.0.1.0.2.20060216100954.035b5ee0@earthlink.net> <7.0.1.0.2.20060216110249.0395d2b0@earthlink.net> <87FA36B4-CD97-4CF5-B9B3-02FEEA25CC95@slamb.org> <7.0.1.0.2.20060216133801.03a7ab50@earthlink.net> <7.0.1.0.2.20060217004822.039d46a8@earthlink.net> <1140168261.32324.70.camel@localhost.localdomain> <7.0.1.0.2.20060217072626.039c5f20@earthlink.net> <1140204169.32324.108.camel@localhost.localdomain> <e692861c0602171436y3f627d32y1df152732da6936c@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