Re: optimize self-join query - Mailing list pgsql-sql

From Ty Busby
Subject Re: optimize self-join query
Date
Msg-id A6BD48AA-5E71-4310-986E-05E6BDC2328F@yahoo.com
Whole thread Raw
In response to optimize self-join query  (Ty Busby <tybusby@gmail.com>)
List pgsql-sql
Thanks to everyone for all the thoughtful responses.  They have been incredibly helpful.

Ended up optimizing per Lee, and creating buckets per Tom.  Thanks again.

On Oct 25, 2011, at 2:37 PM, Ty Busby wrote:

I have a table that stores a very large starting number called epc_start_numeric and a quantity.  I've apparently built
themost inefficient query possible for doing the job I need: find out if any records overlap.  Imagine the
epc_start_numeric+ quantity representing a block of numbers.  I need to find out if any of these blocks overlap. 



pgsql-sql by date:

Previous
From: Phil Couling
Date:
Subject: Re: Different order by behaviour depending on where clause?
Next
From: Jan Bakuwel
Date:
Subject: Re: Different order by behaviour depending on where clause?