<div dir="ltr">Thanks for the feedback, everyone. Yes, both have advantages and disadvantages. With provider-side filters, you can do things that are not possible in QGIS expressions (such as complex PostGIS functions), while QGIS expressions are more powerful when using variables, etc., and it’s super nice that they are independent of the provider. I would still avoid having a combination of both, as it seems fairly fault-prone and hard to use. Using either one or the other seems right. I would for sure create a QEP PR before I start.<br><br>I’m not sure I understand you, Carlo, correctly. Are you talking about creating query layers using QGIS expressions? If so, I’d prefer to keep this aside for now. While it could be interesting, it would introduce a lot of complexity, and I’d rather focus on filtering only. You can still create a query layer — or a virtual layer — and then apply an expression filter to it.<div><br></div><div>Cheers </div><div>Dave</div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Wed, Sep 24, 2025 at 11:43 PM Carlo A. Bertelli (Charta s.r.l.) <<a href="mailto:carlo.bertelli@gmail.com">carlo.bertelli@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:arial,sans-serif;font-size:small">Very interesting indeed.</div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:small">When I worked with Mapinfo, maybe 40 years ago, I remember using the "MapBasic" window to build query-generated layers.</div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:small">I think it would be very handy and substitute generating lots of geometric views inside the database (what a mess!).</div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:small">As Alessandro says, there are drawbacks in any solution, but operating the query inside the database (storing the query as a sort of "local view") is really much more efficient and does not require duplicating the backend via Spatialite with a lot of network traffic and cache size (see what happens with joins made at the client level in Properties).</div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:small">Meanwhile, the Query Builder is much more convenient and using the same syntax all the time is a good idea, but it could be optional, letting the user decide what to do.</div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:small">Anyway, this means creating "automatic temporary tables"; reducing them to filters only means missing some opportunities.</div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:small">I think we must make an effort to define use cases in a more rigorous way. I see a fuzzy scenario with possible misunderstanding between geodatabase parlance and GIS concepts, between application structure and use cases. Maybe it's only fog inside my mind, but the long gestation about the Query Builder suggests that I am not alone.</div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:small">Thanks for keeping reasoning on these issues.</div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:small">c</div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:small"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Sep 24, 2025 at 8:54 PM Nyall Dawson via QGIS-Developer <<a href="mailto:qgis-developer@lists.osgeo.org" target="_blank">qgis-developer@lists.osgeo.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 24 Sept 2025, 10:56 pm David Signer via QGIS-Developer, <<a href="mailto:qgis-developer@lists.osgeo.org" target="_blank">qgis-developer@lists.osgeo.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi there<br><br>I've been considering enhancing the Query Builder (accessible via Layer -> Filter...) by QGIS expression based filters. At least with project and global scope. <br>Maybe with tabs to distinguish between "provider side filter" (current functionality) and "expression filter" (new functionality). <br><br>Any opinions on this? In my view, this could be valuable because it's available on all kinds of data-layers and allows us to use variables and functions for filtering as well.<br></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Can you make sure you file a QEP before starting any work? 👍</div><div dir="auto"><br></div><div dir="auto">Nyall</div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br>Thanks for any feedback and cheers <br>Dave</div><div><br></div><span class="gmail_signature_prefix">--</span><div><span class="gmail_signature_prefix"><br></span><div><span class="gmail_signature_prefix"><font face="arial, sans-serif">Dave Signer<br>Senior Developer & INTERLIS Architect<br>OPENGIS.ch - Team QGIS & Industry Solutions</font></span></div><div><span class="gmail_signature_prefix"><br></span></div></div></div>
_______________________________________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org" rel="noreferrer" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</blockquote></div></div></div>
_______________________________________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</blockquote></div>
</blockquote></div>