pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
function difference(geometry,geometry) is SLOW!
2+ messages / 2 participants
[nested] [flat]

* function difference(geometry,geometry) is SLOW!
@ 2008-06-16 09:06 luke.78@libero.it <luke.78@libero.it>
  0 siblings, 0 replies; 2+ messages in thread

From: luke.78@libero.it @ 2008-06-16 09:06 UTC (permalink / raw)
  To: pgsql-performance

Hi,
In my pgsql procedure, i use the function

geometryDiff := difference
(geometry1,geometry2);

but this function is very slow!!!
What can I do to 
speed this function?
Exists a special index for it?

Thanks in advance!
Luke




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: [pgsql-performance] function difference(geometry, geometry) is SLOW!
@ 2008-06-16 19:26 Chris Mair <chris@1006.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Chris Mair @ 2008-06-16 19:26 UTC (permalink / raw)
  To: pgsql-performance

 >
 > Date: Mon, 16 Jun 2008 11:06:44 +0200 (CEST)
 > From: "luke.78@libero.it" <luke.78@libero.it>
 > To: pgsql-performance@postgresql.org
 > Subject: function difference(geometry,geometry) is SLOW!
 > Message-ID:
 > <10574478.390451213607204584.JavaMail.defaultUser@defaultHost>
 >
 > Hi,
 > In my pgsql procedure, i use the function
 >
 > geometryDiff := difference
 > (geometry1,geometry2);
 >
 > but this function is very slow!!!
 > What can I do to
 > speed this function?
 > Exists a special index for it?
 >
 > Thanks in advance!
 > Luke

Hi,

this is a postgis function. Postgis is an independent project
and you might want to ask there:

http://www.postgis.org/mailman/listinfo/postgis-users

or

http://www.faunalia.com/cgi-bin/mailman/listinfo/gfoss
(italian).

Anyway, as long as you just compute the difference between
2 given shapes, no index can help you. Indices speed up
searches...

Bye,
Chris.





^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2008-06-16 19:26 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2008-06-16 09:06 function difference(geometry,geometry) is SLOW! luke.78@libero.it <luke.78@libero.it>
2008-06-16 19:26 Re: [pgsql-performance] function difference(geometry, geometry) is SLOW! Chris Mair <chris@1006.org>

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