About 30 layers, although it's pretty slow with 20 (about 15 seconds or so).
http://www.clemetparks.com/images/esig/cmp-ms-90x122.pngStephen Mather Geographic Information Systems (GIS) Manager (216) 635-3243 [email protected] <http://www.clemetparks.com/> clevelandmetroparks.com From: [email protected] [mailto:[email protected]] On Behalf Of Andrea Aime Sent: Friday, January 27, 2012 3:30 AM To: [email protected] Cc: [email protected] Subject: Re: [Geoserver-users] Tips and tricks to getting fast responses on GetFeatureInfo 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 -------------------------------------------------------
<<image001.png>>
------------------------------------------------------------------------------ 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
