Solved

CLUSTER Postgres relation on gist index

Posted on 2014-11-17
2
238 Views
Last Modified: 2014-11-20
I am busy learning Postgres with the goal of migrating our current MySQL database to a Postgres/PostGIS spatial database.

We have a table containing (multi)polygons and do a large number of queries that need to find the properties within a given radius of a specific property. In MySQL I have Lat and Lon columns (in radians, of the property centroids) and use the great circle formula to do this.

I was reading about ways of improving performance in Postgres and came across a section titled "Cluster tables on specific indexes".

My question is: Does this work with spatial (gist) indexes to cluster the table by proximity of geometries?
0
Comment
Question by:DerekWatling
2 Comments
 

Accepted Solution

by:
DerekWatling earned 0 total points
ID: 40454515
Since there has been no response to my question, I have been doing some more research and came across http://revenant.ca/www/postgis/workshop/indexing.html#clustering-data which states that with the table clustered on a geometry index:
Geometries that are near each other in space are near each other on disk.
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Best database to use for Maps is PostgreSQL. This is an open source database. Comes as a package with most Linux OS. For more info visit the following site: http://www.postgresql.org/ (http://www.postgresql.org/) This requires some add-o…
Many developers have database experience, but are new to PostgreSQL. It has some truly inspiring capabilities. I have several years' experience with Microsoft's SQL Server. When I began working with MySQL, I wanted a quick-reference to MySQL (htt…
Steps to create a PostgreSQL RDS instance in the Amazon cloud. We will cover some of the default settings and show how to connect to the instance once it is up and running.
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question