Re: Yet another fast GiST build - Mailing list pgsql-hackers

From Peter Geoghegan
Subject Re: Yet another fast GiST build
Date
Msg-id CAH2-WzkEFK6=oDMB8qWO5AepcSPRuvs__0Mh=x9z2u5ocK0VcA@mail.gmail.com
Whole thread Raw
In response to Re: Yet another fast GiST build  (Alexander Korotkov <a.korotkov@postgrespro.ru>)
Responses Re: Yet another fast GiST build
List pgsql-hackers
On Thu, Aug 29, 2019 at 3:48 PM Alexander Korotkov
<a.korotkov@postgrespro.ru> wrote:
> > As you can see, Z-order build is on order of magnitude faster. Select performance is roughly the same. Also, index
issignificantly smaller.
 
>
> Cool!  These experiments bring me to following thoughts.  Can we not
> only build, but also maintain GiST indexes in B-tree-like manner?  If
> we put Z-value together with MBR to the non-leaf keys, that should be
> possible.  Maintaining it in B-tree-like manner would have a lot of
> advantages.

I'm not an expert on GiST, but that seems like it would have a lot of
advantages in the long term. It is certainly theoretically appealing.

Could this make it easier to use merge join with containment
operators? I'm thinking of things like geospatial joins, which can
generally only be performed as nested loop joins at the moment. This
is often wildly inefficient.

-- 
Peter Geoghegan



pgsql-hackers by date:

Previous
From: Alexander Korotkov
Date:
Subject: Re: Yet another fast GiST build
Next
From: Peter Geoghegan
Date:
Subject: Re: [HACKERS] [WIP] Effective storage of duplicates in B-tree index.