<div dir="ltr"><div class="gmail_default" style="font-size:large">Hi Matthias,<br><br></div><div class="gmail_default" style="font-size:large">Thanks a lot for your answer. Unfortunately, I have no sponsors for this. I asked to improve my knowledge on this topic ;)<br>Perhaps we could raise a crowdfunding for this improvement ?<br><br></div><div class="gmail_default" style="font-size:large">Cheers,<br></div><div class="gmail_default" style="font-size:large">Michaël<br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-07-05 15:31 GMT+02:00 Matthias Kuhn <span dir="ltr"><<a href="mailto:matthias@opengis.ch" target="_blank">matthias@opengis.ch</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Michaël,<br>
<br>
There are a couple of possibilities to improve the performance of<br>
operations in two ways (which both help here AFAICS)<br>
<br>
* Give QgsExpression::prepare() more power<br>
* Compile functions (where possible)<br>
<br>
The send one depends to some degree on the first one.<br>
<br>
Let me know if you have sponsors, I've got some experimental code<br>
somewhere and I am very interested in working on this project.<br>
<br>
FYI, a first test - only the prepare part - some months ago improved the<br>
2.5D rendering by ~30%.<br>
<br>
Regards<br>
Matthias<br>
<div><div class="h5"><br>
On 07/05/2016 03:11 PM, kimaidou wrote:<br>
> Hi all,<br>
><br>
> I am a bit curious about performances concerning the use of Spatial<br>
> expressions in QGIS, for example to select features like this<br>
><br>
> intersects(<br>
> $geometry,<br>
> geom_from_wkt( 'MultiPolygon (((649308.28000000002793968<br>
> 6978002.05999999959021807, 649295.32999999995809048<br>
> 6977994.54999999981373549, 649235.92000000004190952<br>
> 6978013.50999999977648258, 649182.53000000002793968<br>
> 6978077.32000000029802322, 649212.34999999997671694<br>
> 6978159.53000000026077032, 649308.28000000002793968<br>
> 6978002.05999999959021807)))')<br>
> )<br>
><br>
> NB: I have simplified the WKT representation here<br>
><br>
> I am running this expression inside QGIS 2.14, for a layer containing<br>
> approx. 100 000 features ( buildings).<br>
> The WKT polygon represents a very small area compared to the whole<br>
> layer: 500 features only are selected.<br>
><br>
> It seems to me no spatial index is used, because it takes some time to<br>
> run ~ 3 minutes.<br>
><br>
> I have checked the option to run expressions server side, and all the<br>
> layers are PostGIS layers.<br>
><br>
> What could be done to improve this kind of expressions, which can be<br>
> used elsewhere in QGIS ( to toggle labels for example ) ?<br>
><br>
> Regards<br>
> Michaël<br>
><br>
><br>
</div></div>> _______________________________________________<br>
> Qgis-developer mailing list<br>
> <a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
> List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
> Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
><br>
_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a></blockquote></div><br></div>