On Thu, Jan 26, 2012 at 10:54 PM, Stephen V. Mather <
[email protected]> wrote:

>  Hi All,****
>
>                 Are there any recommended tips and tricks to getting fast
> responses with GetFeatureInfo?  I’ve got a lot of layers I’m serving up
> through OpenLayers.  If I turn many of them off, I get an almost instant
> response, but the more I turn on, the slower the response gets, sometimes
> taking 30 seconds to return a value.
>

Wow, that's a long time. How many layers are we taking about?
GetFeatureInfo has a QUERY_LAYER parameter where you specify which layers
you want to query out
of the original map. Maybe you can shorten the list of layers being queried
a bit?

Besides that, there are possible code modifications to make that query
faster:
- today we retrieve also the geometry because templates _can_ return it to
the client (and the GML output surely does).
  One thing could be to identify a list of attributes that should be
returned by GetFeatureInfo, so that one can
  limit it appropriately
- another option having multiple layers could be to parallelize queries a
bit

Cheers
Andrea


-- 
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:      +39 0584 962313
mob:    +39 339 8844549

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

-------------------------------------------------------
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to