<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
Le 22/10/2021 à 16:01, Marco Boeringa a écrit :<br>
<blockquote type="cite"
cite="mid:a5345f47-f63e-8264-8a16-1bba9e0528dc@boeringa.demon.nl">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
I have now done some preliminary testing with a > 10M records
dataset, but my first impression is that 'ST_Intersects' is not
faster than 'ST_DWithin' with range 0. <br>
<p>In fact, I have the feeling it may be about 20-25% slower (e.g.
2m48s versus for 'ST_Intersects' versus 2m07s for 'ST_DWithin'
was one result). At least, that is what I am currently seeing
when I replace the 'ST_Intersects' call with 'ST_DWithin' in
your optimized query, and this difference seems quite consistent
when I re-run this multiple times.<br>
</p>
</blockquote>
<br>
Thanks for the feedback Marco.<br>
Quite surprising to me (but I know nothing about Postgis'
internals), but good to know.<br>
<br>
Regards<br>
--<br>
Arnaud<br>
<div id="grammalecte_menu_main_button_shadow_host" style="width:
0px; height: 0px;"></div>
</body>
</html>