[Qgis-developer] [Server] performance questions

Jörg Habenicht jh at mwerk.net
Fri Apr 22 09:24:00 PDT 2016


Hi Matthias,

Am 22.04.2016 um 17:20 schrieb Matthias Kuhn:
> Hi,
> 
> I don't know the server code very well, so I may be wrong, but I think
> that making the server multithreaded rendering (MTR) capable should be
> possible. And while it is certainly often possible to increase the
> performance with filtering, rules and caching there are certainly also
> situations where MTR can help a server to generate quick responses (many
> layers, few requests).
> 
> As far as I can see, the main task would be porting the code from
> QgsMapRenderer to QgsMapRendererJob and QgsMapSettings. A first step
> into this direction can be found in a recently closed pull request [1],
> in particular this commit [2].

I'll have a look.
It seems to me I have to extract the code inside the loop (in
QgsMapRenderer::render(), "while ( li.hasPrevious() )") into a separate
method and call QtConcurrent on that.


> 
> Concerning parallel DB connection, there's no difference between server
> and desktop use. This code is already in production use and should be
> fairly robust already.
> 
> I hope I didn't base this message on wrong assumptions and hope someone
> of the server developers can shed more light onto this.

thanks

> 
> Regards
> Matthias
> 
> [1] https://github.com/qgis/QGIS/pull/2989/files
> [2]
> https://github.com/qgis/QGIS/pull/2989/commits/4cba6393544aeb23569d6c15f19e67f4ff8bf19c
> 
> 
[snip]


-- 

mWerk GmbH
Dipl.-Ing. Jörg Habenicht
Landwehrstr. 76
30519 Hannover
(T) +49 511 9999 8033
(F) +49 511 9999 8041
(E) jh at mwerk.net
Amtsgericht Hannover HRB 206522
Geschäftsführer
Reiner Brachvogel
Dennis Kornehl


More information about the Qgis-developer mailing list