Where to create an Index

From: Efraín Déctor <efraindector(at)motumweb(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Where to create an Index
Date: 2012-04-02 21:40:00
Message-ID: 3F5D3E1A00C044D697FCBEEBC24D4243@CMOTUM25PC
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I have this query:

SELECT ST_Distance(transform(geometryfromtext('POINT(-97.096667 18.858611)',4326),32614),C.point_geomutm)
AS DIST ,nombre FROM ciudad AS C ORDER BY DIST ASC limit 1;

It runs a secuential query on the table “ciudad” wich is a big table. I want to create an index but I don’t know where, using a gist index on point_geomutm does nothing and also creating one using nombre.

Thanks in advance.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David Johnston 2012-04-02 22:04:20 Re: Where to create an Index
Previous Message Welty, Richard 2012-04-02 21:21:12 9.1.3: launching streaming replication