Re: [GENERAL] Large data and slow queries - Mailing list pgsql-general

From Samuel Williams
Subject Re: [GENERAL] Large data and slow queries
Date
Msg-id CAHkN8V8mrPi-aQBR01iJiM-mQ6bm6qLQw7GFWU71AN37HKXyiw@mail.gmail.com
Whole thread Raw
In response to Re: [GENERAL] Large data and slow queries  (Alban Hertroys <haramrae@gmail.com>)
Responses Re: [GENERAL] Large data and slow queries  (Vick Khera <vivek@khera.org>)
List pgsql-general
Okay, so after changing longitude/latitude to float4, and
re-organizing the table a bit, I got the query down from about 8
minutes to 40 seconds.

The details are in the gist comments:
https://gist.github.com/ioquatix/bddda36d9e4ffaceb7a62d7b62259121

Now, just need to get performance another 2 orders of magnitude
better. Can we make the index a bit more coarse grained, perhaps
convert long/lat to integers or something, use a hilbert index, use a
postgis index... ideas?


pgsql-general by date:

Previous
From: George Neuner
Date:
Subject: Re: [GENERAL] full text search on hstore or json with materialized view?
Next
From: Jeff Janes
Date:
Subject: Re: [GENERAL] full text search on hstore or json with materialized view?