<div dir="auto">Hi,<div dir="auto"><br></div><div dir="auto">The trick is to have every fields of db indexed</div><div dir="auto"><br></div><div dir="auto">Otherwise a remote filter on an not indexed fields could slowly hardly.</div><div dir="auto">:)</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">Il 23 Ago 2017 15:06, "Daniel Morissette" <<a href="mailto:dmorissette@mapgears.com">dmorissette@mapgears.com</a>> ha scritto:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Jukka,<br>
<br>
That's a very good question and I thought the same as you at first, but when I think about it some more I'm not sure if the risk is real or not: since the FILTER is combined with whatever pre-existing filter was already in the layer, it can only reduce the number of features returned/drawn, so it can hardly add much load, unless the number of features returned/drawn was already excessively high.<br>
<br>
I didn't research this in details so I may be missing something obvious. What do you think?<br>
<br>
Daniel<br>
<br>
On 2017-08-16 5:12 AM, Rahkonen Jukka (MML) wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
One thing that came late into my mind: it will be rather easy to write FILTER params which are very heavy to execute in the database. Same applies to SLD, see <a href="https://github.com/mapserver/mapserver/pull/4703" rel="noreferrer" target="_blank">https://github.com/mapserver/m<wbr>apserver/pull/4703</a>, and because of that server admin can deny the use of SLD by setting ows_sld_enabled metadata into false.<br>
<br>
Unlike  %variable% it is not easy to validate OGC filters, but should we have at least a method for disabling it with some metadata like “wms_filter_enabled”<br>
<br>
-Jukka Rahkonen-<br>
<br>
*Lähettäjä:*mapserver-dev [mailto:<a href="mailto:mapserver-dev-bounces@lists.osgeo.org" target="_blank">mapserver-dev-bounces@<wbr>lists.osgeo.org</a>] *Puolesta *Rahkonen Jukka (MML)<br>
*Lähetetty:* 16. elokuuta 2017 7:12<br>
*Vastaanottaja:* Lime, Steve D (MNIT) <<a href="mailto:steve.lime@state.mn.us" target="_blank">steve.lime@state.mn.us</a>>; Daniel Morissette <<a href="mailto:dmorissette@mapgears.com" target="_blank">dmorissette@mapgears.com</a>>; 'MapServer Dev List' <<a href="mailto:mapserver-dev@lists.osgeo.org" target="_blank">mapserver-dev@lists.osgeo.org</a><wbr>><br>
*Aihe:* Re: [mapserver-dev] MOTION to adopt RFC 118 - Vendor-specific WMS FILTER param<br>
<br>
+1<br>
<br>
-Jukka Rahkonen-<br>
<br>
------------------------------<wbr>------------------------------<wbr>------------<br>
<br>
*Lähettäjä: *Lime, Steve D (MNIT) <mailto:<a href="mailto:steve.lime@state.mn.us" target="_blank">steve.lime@state.mn.us</a><wbr>><br>
*Lähetetty: *‎16.‎8.‎2017 3:01<br>
*Vastaanottaja: *Daniel Morissette <mailto:<a href="mailto:dmorissette@mapgears.com" target="_blank">dmorissette@mapgears.c<wbr>om</a>>; 'MapServer Dev List' <mailto:<a href="mailto:mapserver-dev@lists.osgeo.org" target="_blank">mapserver-dev@lists.os<wbr>geo.org</a>><br>
*Aihe: *Re: [mapserver-dev] MOTION to adopt RFC 118 - Vendor-specific WMS FILTER param<br>
<br>
+1<br>
<br>
------------------------------<wbr>------------------------------<wbr>------------<br>
<br>
*From:*mapserver-dev <<a href="mailto:mapserver-dev-bounces@lists.osgeo.org" target="_blank">mapserver-dev-bounces@lists.o<wbr>sgeo.org</a> <mailto:<a href="mailto:mapserver-dev-bounces@lists.osgeo.org" target="_blank">mapserver-dev-bounces@<wbr>lists.osgeo.org</a>>> on behalf of Daniel Morissette <<a href="mailto:dmorissette@mapgears.com" target="_blank">dmorissette@mapgears.com</a> <mailto:<a href="mailto:dmorissette@mapgears.com" target="_blank">dmorissette@mapgears.c<wbr>om</a>>><br>
*Sent:* Tuesday, August 15, 2017 4:41:33 PM<br>
*To:* 'MapServer Dev List'<br>
*Subject:* [mapserver-dev] MOTION to adopt RFC 118 - Vendor-specific WMS FILTER param<br>
<br>
We had the discussion on RFC 118 back in February and the code in my<br>
fork (<a href="https://github.com/dmorissette/mapserver/tree/rfc118-filter" rel="noreferrer" target="_blank">https://github.com/dmorissett<wbr>e/mapserver/tree/rfc118-filter</a><wbr>) has<br>
been in use in a few apps since, but we haven't voted to include it<br>
officially in 7.2 yet.<br>
<br>
So unless there is more feedback, I'll move to adopt MS RFC 118 -<br>
Support Vendor-Specific OGC FILTER parameter in WMS requests:<br>
<br>
<a href="http://mapserver.org/development/rfc/ms-rfc-118.html" rel="noreferrer" target="_blank">http://mapserver.org/developme<wbr>nt/rfc/ms-rfc-118.html</a><br>
<br>
And I start with my +1<br>
<br>
Daniel<br>
-- <br>
Daniel Morissette<br>
Mapgears Inc<br>
T: <a href="tel:%2B1%20418-696-5056%20%23201" value="+14186965056" target="_blank">+1 418-696-5056 #201</a><br>
______________________________<wbr>_________________<br>
mapserver-dev mailing list<br>
<a href="mailto:mapserver-dev@lists.osgeo.org" target="_blank">mapserver-dev@lists.osgeo.org</a> <mailto:<a href="mailto:mapserver-dev@lists.osgeo.org" target="_blank">mapserver-dev@lists.os<wbr>geo.org</a>><br>
<a href="https://lists.osgeo.org/mailman/listinfo/mapserver-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailma<wbr>n/listinfo/mapserver-dev</a><br>
<br>
<br>
<br>
______________________________<wbr>_________________<br>
mapserver-dev mailing list<br>
<a href="mailto:mapserver-dev@lists.osgeo.org" target="_blank">mapserver-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/mapserver-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailma<wbr>n/listinfo/mapserver-dev</a><br>
<br>
</blockquote>
<br>
<br>
-- <br>
Daniel Morissette<br>
Mapgears Inc<br>
T: <a href="tel:%2B1%20418-696-5056%20%23201" value="+14186965056" target="_blank">+1 418-696-5056 #201</a><br>
______________________________<wbr>_________________<br>
mapserver-dev mailing list<br>
<a href="mailto:mapserver-dev@lists.osgeo.org" target="_blank">mapserver-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/mapserver-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailma<wbr>n/listinfo/mapserver-dev</a></blockquote></div></div>