[mapguide-users] Why MgMap::Create is so slow

Bruce Dechant bruce.dechant at autodesk.com
Tue Apr 28 14:07:18 EDT 2009


Bruno,

It is slow because for every layer in the map the web tier sends 2 requests (Authenticate + GetResourceContent) to the server. So in your map case there would be a minimum of 400 requests to the server. This is something we are aware of and would like to change. We have some test maps with over 700 layers. Ideally, we would like to change this down to about 2 requests regardless of the # of layers- ie: Authenticate + CreateMap. In order to do this we need to move the map creation to the server side and then serialize back to the web the created map object.

Thanks,
Bruce

-----Original Message-----
From: mapguide-users-bounces at lists.osgeo.org [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Bruno Scott
Sent: Tuesday, April 28, 2009 9:51 AM
To: mapguide-users at lists.osgeo.org
Subject: [mapguide-users] Why MgMap::Create is so slow


I have a quite big MapDefinition with about 200 layers.
When a use the MgMap API Create it takes about 20 seconds
But if i use the GetResourceContent it almost instantly.

I wonder why this function is so slow.

The only thing i'm trying to do is to read this MapDefinition to retreive
information about a layer
  his resource Id
  his group hierarchy
  and his display order.

Bruno
-- 
View this message in context: http://n2.nabble.com/Why-MgMap%3A%3ACreate-is-so-slow-tp2734318p2734318.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

_______________________________________________
mapguide-users mailing list
mapguide-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


More information about the mapguide-users mailing list