Solved

CLUSTER Postgres relation on gist index

Posted on 2014-11-17
2
228 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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I feel like more and more people want to know how to programmatically convert addresses into geospatial locations. So in this article, I will show you how you can do it with Bing Maps. I'm going to use PowerShell, which is a nice scripting language,…
Introduction This article is designed to assist GIS (Geographic Information System) and GPS (Global Positioning System) developers using ESRI ArcGIS and other spatial information management systems.   For the uninitiated the concept of projectio…
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 walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…

762 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now