Re: [pgsql-es-ayuda] indices y optimizacion de consulta

2014-12-02 Por tema Alvaro Herrera
jvenegasperu . escribió: > " -> Bitmap Heap Scan on cat_lote l > (cost=4.49..116.70 rows=2 width=91) (actual time=25.199..534.881 rows=86219 > loops=1)" > "Recheck Cond: (d.the_geom && geo_punto)" > "Filter:

[pgsql-es-ayuda] indices y optimizacion de consulta

2014-12-02 Por tema jvenegasperu .
Hola a todos buenas tardes tengo esta consulta: select distinct on(l.id) l.id ,l.nom_cli,l.v_gral,o.gid,o.sector,o.fechaini,o.fechafin,o.horaini,o.horafin, l.sector as sec,l.clvmzna,l.lote,g.nombre from cat_distrito d join cat_lote l on st_contains(d.the_geom,l.geo_punto) left join sector_operaci