<div dir="ltr"><div>Two postgres layers with an index on the fields.<br><br></div>Do I see some debug messages (when compiled with DEBUG)? <br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 30, 2015 at 9:27 PM, Nyall Dawson <span dir="ltr"><<a href="mailto:nyall.dawson@gmail.com" target="_blank">nyall.dawson@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 31 December 2015 at 06:18, Stefan Ziegler<br>
<span class=""><<a href="mailto:stefan.ziegler.de@gmail.com">stefan.ziegler.de@gmail.com</a>> wrote:<br>
> Hi Nyall<br>
><br>
> I compared 2.12 with current master. But I don't see an improvement. Opening<br>
> the attribute table takes around 10 seconds for layers with approx. 2000<br>
> features with one virtual field (with the attribute(get_feature())<br>
> expression). Rendering is also really slow when using rule based renderer on<br>
> the virtual field.<br>
<br>
</span>What's the data source for each layer? If it's in a database (eg<br>
postgres), is there a suitable index on the joined field?<br>
<span class="HOEnZb"><font color="#888888"><br>
Nyall<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
<br>
><br>
> regards<br>
> Stefan<br>
><br>
> On Wed, Dec 30, 2015 at 7:22 PM, Nyall Dawson <<a href="mailto:nyall.dawson@gmail.com">nyall.dawson@gmail.com</a>><br>
> wrote:<br>
>><br>
>><br>
>> On 31 Dec 2015 2:01 AM, "Stefan Ziegler" <<a href="mailto:stefan.ziegler.de@gmail.com">stefan.ziegler.de@gmail.com</a>><br>
>> wrote:<br>
>> ><br>
>> > Hi<br>
>> ><br>
>> > I add a virtual field to a layer with e.g. following expression<br>
>> ><br>
>> > attribute(get_feature('pnf_pnf','t_id',afrom),'year')<br>
>> ><br>
>> > This works really great. Then I'm using this new virtual field for<br>
>> > filtering the features in the rule based renderer. How does affect this the<br>
>> > rendering performance? It seems that it really slows down rendering even<br>
>> > with layers with only approx 600 features each.<br>
>> ><br>
>> > If so, can the speed improved with e.g. some to develop caching<br>
>> > mechanism?<br>
>><br>
>> Try with the current master version - this should be MUCH faster now. I'd<br>
>> love to hear any feedback of how you find the changes improve (or don't<br>
>> improve!) your situation.<br>
>><br>
>> Nyall<br>
>><br>
>> ><br>
>> > regards<br>
>> > Stefan<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><br>
><br>
><br>
</div></div></blockquote></div><br></div>