pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joel Reymont <joelr1@gmail.com>
To: Pierre C <lists@peufeu.com>
Cc: pgsql-performance@postgresql.org <pgsql-performance@postgresql.org>
Subject: Re: stored proc and inserting hundreds of thousands of rows
Date: Sat, 30 Apr 2011 19:14:31 +0100
Message-ID: <7582830307139292886@unknownmsgid> (raw)
In-Reply-To: <op.vuri6d2keorkce@apollo13>
References: <D5DE36B9-17CF-4A55-9119-CDC0BDC4E48D@gmail.com>
	<4DBC004C020000250003D099@gw.wicourts.gov>
	<4881277622113933088@unknownmsgid>
	<op.vuri6d2keorkce@apollo13>

I'm calculating distance between probability vectors, e.g. topics that
a document belongs to and the topics of an ad.

The distance function is already a C function. Topics are float8[150].

Distance is calculated against all documents in the database so it's
arable scan.

Sent from my comfortable recliner

On 30/04/2011, at 19:04, Pierre C <lists@peufeu.com> wrote:

>
> If you want to search by geographical coordinates, you could use a gist index which can optimize that sort of things (like retrieving all rows which fit in a box).



view thread (14+ messages)  latest in thread

Message-ID: <7582830307139292886@unknownmsgid>
Permalink:  ../7582830307139292886@unknownmsgid/
Also on:    postgresql.org/message-id/7582830307139292886@unknownmsgid

 · 

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: joelr1@gmail.com, lists@peufeu.com
  Subject: Re: stored proc and inserting hundreds of thousands of rows
  In-Reply-To: <7582830307139292886@unknownmsgid>

* 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