<div>Hello everybody,</div><div><br></div><div>I wonder why this is happening, all tables are with indexes and has already run a vacuum analyze to all of them:</div><div><br></div><div><div>SELECT ms_ucs,</div><div>SUM(ST_Area(Geography((ST_Intersection(analises.pol_geom,ms_2010_s1.geom)))))/10000</div>
<div>AS area_ha</div><div>FROM analises, ms_2010_s1</div><div>WHERE analises.pol_geom && ms_2010_s1.geom</div><div>AND ST_Intersects(analises.pol_geom,ms_2010_s1.geom)</div><div>GROUP BY ms_ucs; <b>-- 889 ms</b></div>
<div><br></div><div>SELECT ms_ucs,</div><div>SUM(ST_Area(Geography((ST_Intersection(analises.pol_geom,ms_2010_s1.geom)))))/10000</div><div>AS area_ha</div><div>FROM analises, ms_2010_s1</div><div>WHERE ST_Intersects(analises.pol_geom,ms_2010_s1.geom)</div>
<div>GROUP BY ms_ucs; <b>-- 870 ms !!!</b></div></div><div><br></div><div>Please note that the second, without using the && operator was faster, there's something wrong or I'm not understanding the functioning of the index?</div>
<div><br></div><div>Thanks in advance,</div>-- <br><b>Marcello Benigno B. de Barros Filho</b><br><font size="1">Prof. do Curso Superior de Tecnologia em Geoprocessamento - IFPB<br>Mestre em Ciências Geodésicas e Tecnologias da Geoinformação - UFPE</font><div>
<font size="1">Doutorando em Tecnologia Ambiental e Recursos Hídricos - UFPE</font><font size="1"><br></font><font size="1"><a href="http://profmarcello.blogspot.com" target="_blank">http://profmarcello.blogspot.com</a></font><div>
<a href="http://about.me/marcello.benigno" target="_blank"><font size="1">http://about.me/marcello.benigno</font></a></div></div>