[mapguide-trac] #620: Improve load time for Runtime map Initialization

MapGuide Open Source trac_mapguide at osgeo.org
Tue Jul 8 04:44:51 EDT 2008


#620: Improve load time for Runtime map Initialization
---------------------------+------------------------------------------------
   Reporter:  ksgeograf    |       Owner:                                    
       Type:  enhancement  |      Status:  new                               
   Priority:  low          |   Milestone:                                    
  Component:  Server       |     Version:  2.0.1                             
   Severity:  minor        |    Keywords:  speedup runtime map initialization
External_id:               |  
---------------------------+------------------------------------------------
 When the runtime map is created, the server issues "!DescribeSchema" for
 all layers in the map, regardless of the maps current visiblity status.
 This causes very slow loads if one of the layers is a WFS source, in
 extreme cases the map does not load at all, but times out.

 I belive the only reason for the initial call to "!DescribeSchema" is to
 populate the "IDs" array in the runtime layer.

 The code should be updated so that the ID's are initally set to null for
 all layers, except the visible ones. Once the layer is set to visible, the
 code should test for the null case and call "!DescribeSchema" if needed.
 In all case the "IDs" array should be set to a zero length array after the
 call, to avoid extra calls later on.

 This will speed up map creation, and reduce the stall to happen on a
 single layer, which is much easier to track down.

 I'm unsure if the ID's are required for anything but selection (tooltips
 perhaps?). If not, the change should defer the call to "!DescribeSchema"
 until the layer is both visible and selectable.

-- 
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/620>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list