<div dir="ltr"><div dir="ltr"><div>And I am not really sure that what you are willing to achieve with the GROUP BY</div><div>I am not aware of you data model, though.</div><div><br></div><div>Maybe you have upgraded recently to postgis 2.4 which change GROUP BY behavior</div><div>when it comes to geometries [1]?</div><div>Geometries in 2.4 are no more grouped using bbox comparison but using strict equality (st_equals)<br></div><div><br></div><div>[1]<a href="http://blog.cleverelephant.ca/2017/09/postgis-operators.html">http://blog.cleverelephant.ca/2017/09/postgis-operators.html</a><br></div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr">Le jeu. 6 déc. 2018 à 17:09, Tumasgiu Rossini <<a href="mailto:rossini.t@gmail.com">rossini.t@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I do not really understand.</div><div>Is it a query which used to be faster ?</div><div><br></div><div>A little remark on your where clause :</div><div>it is unnecesseraly complicated and could be shortened to :<br></div><div> WHERE st_intersects(zi.geom, tile.geom)</div><div><br></div><div>True and false value doesn't need to be surronded by quote,</div><div>here you are implicitly casting the string value 'true' to its boolean representation<br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">Le jeu. 6 déc. 2018 à 16:53, Manchon Pierre <<a href="mailto:pierre.manchon@irstea.fr" target="_blank">pierre.manchon@irstea.fr</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="FR" link="#0563C1" vlink="#954F72"><div class="m_8651596284748214684m_6400255470179036869WordSection1"><p class="MsoNormal"><span lang="EN-US">Hello there,<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">I'm new on the list and for a premiere I would like to know if some of you have a very long runtime for some of their queries (even with a LIMIT 5), whereas those queries were working well before (nothing changed from that). I'm using Postgre10, pgAdmin4 and postgis 2.4.4 on windows …<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">The infinite query I’m trying to execute: (only ~500 rows are stored on each of the two tables)<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><table class="m_8651596284748214684m_6400255470179036869MsoTableGrid" border="1" cellspacing="0" cellpadding="0" style="border-collapse:collapse;border:none"><tr><td width="626" valign="top" style="width:469.8pt;border:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt"><p class="MsoNormal"><span lang="EN-US">SELECT code_tile, code_zi FROM data.tile, data.zi<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">WHERE ST_Intersects(zi.geom, tile.geom) = 'true'<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">GROUP BY code_zi, code_tile, zi.geom, tile.geom<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">LIMIT 5<u></u><u></u></span></p></td></tr></table><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">Thank you for your time<u></u><u></u></span></p></div></div>_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org" target="_blank">postgis-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/postgis-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-users</a></blockquote></div>
</blockquote></div>