<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta name="Microsoft Theme 2.00" content="Etienne Desgagné Évimbec 011"><meta http-equiv=Content-Type content="text/html; charset=iso-8859-1"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Texte de bulles Car";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Arial","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.TextedebullesCar
        {mso-style-name:"Texte de bulles Car";
        mso-style-priority:99;
        mso-style-link:"Texte de bulles";
        font-family:"Arial","sans-serif";}
span.apple-converted-space
        {mso-style-name:apple-converted-space;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=FR-CA link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='font-size:7.5pt;font-family:"Verdana","sans-serif";color:black;background:white'>Hello,<span class=apple-converted-space> </span></span><span lang=EN-US style='font-size:7.5pt;font-family:"Verdana","sans-serif";color:black'><br><br><span style='background:white'>    I don't want to denigrate PostGIS in any way and I know that my comparison may be wrong but I'm trying to understand why a basic ST_Intersection of two relatively small layers (< 1000 polygons) take about 1m40 sec in PostGIS(2.0 on PG 9.2 on Windows) while applying the ArcGIS Intersect on same layers and machine take about 2 sec?<span class=apple-converted-space> </span></span><br><br><span style='background:white'>I'm aware of some PostgreSQL tuning settings but even applying basic tuning recommendation for PostGIS I'm facing the same problem...<span class=apple-converted-space> </span></span><br style='orphans: 2;text-align:start;widows: 2;-webkit-text-size-adjust: auto;-webkit-text-stroke-width: 0px;word-spacing:0px'><br><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:7.5pt;font-family:"Verdana","sans-serif";color:black'>My two layers also have a spatial index.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:7.5pt;font-family:"Verdana","sans-serif";color:black'><br><span style='background:white'>Is it normal behavior? Any suggestion for reaching better performance?<span class=apple-converted-space> </span></span><br><br><span style='background:white'>Note that I'm also using ST_Intersects on the join to filter only intersecting features...<span class=apple-converted-space> </span></span><br><br></span><span style='font-size:7.5pt;font-family:"Verdana","sans-serif";color:black;background:white'>Thanks a lot<span class=apple-converted-space> </span></span><span style='font-size:7.5pt;font-family:"Verdana","sans-serif";color:black'><br><br><span style='background:white'>Etienne</span></span><o:p></o:p></p></div></body></html>