Re: Large data and slow queries

From: Samuel Williams <space(dot)ship(dot)traveller(at)gmail(dot)com>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Large data and slow queries
Date: 2017-04-20 02:11:58
Message-ID: CAHkN8V8mrPi-aQBR01iJiM-mQ6bm6qLQw7GFWU71AN37HKXyiw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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?

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jeff Janes 2017-04-20 03:09:11 Re: full text search on hstore or json with materialized view?
Previous Message George Neuner 2017-04-20 01:44:10 Re: full text search on hstore or json with materialized view?