[mapguide-trac] #211: Serializing class definition to XML needs to be optimized

MapGuide Open Source trac_mapguide at osgeo.org
Fri Jun 15 19:16:52 EDT 2007


#211: Serializing class definition to XML needs to be optimized
-------------------------------+--------------------------------------------
   Reporter:  ronnielouie      |       Owner:       
       Type:  defect           |      Status:  new  
   Priority:  medium           |   Milestone:  1.3  
  Component:  Feature Service  |     Version:  1.2.0
   Severity:  major            |    Keywords:       
External_id:                   |  
-------------------------------+--------------------------------------------
 From Haris Kurtagic:

 The problem was when executing MgServerDescribeSchema::DescribeSchema.

 While transfering classes from FDO schema collection to MapGuide it is
 calling MgServerGetFeatures::GetMgClassDefinition in a for-loop for every
 class.

 GetMgClassDefinition will seralize class to XML. But serialazing is done
 in a way that new temporary schema is created and than class is removed
 from original schema , put to temporary, temporary schema serialized and
 class returned to original class collection.

 And if in that proccess another thread is doing describe schema it is
 error and exception and...



 This is more obvious in a case of edits because after every edit (
 insert/update/delete ) cache is cleared and DescribeSchema is called
 again.



 I believe that describe schema should work differently, when doing "get
 class" it shouldn't change original schema list ( temporary removes class
 from list).

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


More information about the mapguide-trac mailing list