<div dir="auto">Hello Marco,<div dir="auto"><br></div><div dir="auto">As far as I remember, there's no GUI interface just for that purpose.</div><div dir="auto"><br></div><div dir="auto">You can change the view on the database side to include that extent condition. Depending on how your view is constructed, that will probably trigger the spatial indexes.</div><div dir="auto"><br></div><div dir="auto">Alternatively, you can set a filter on QGIS side, you can use for example ST_intersects if you are on PostGIS. What I am not sure is if indexes are used or not. They</div><div dir="auto"><br></div><div dir="auto">Alexandre Neto</div><div dir="auto">User support</div><div dir="auto"><a href="http://www.qcooperative.net">www.qcooperative.net</a></div><div dir="auto"><br></div><div dir="auto"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">A terça, 6/07/2021, 13:33, Marco Casalboni <<a href="mailto:casalbonim@gmail.com">casalbonim@gmail.com</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi all,<div>is there a way to manually set up a layer extent?</div><div><br></div><div>I have a huge view in SQL that is too slow on loading because qgis scans the entire view to find the extent.</div><div>An alternative could be instruct qgis to use a specific spatial index for a specific layer</div><div><br></div><div>thanks</div></div>
_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank" rel="noreferrer">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
</blockquote></div>