Please review RFC151: Add layer definition cache

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Please review RFC151: Add layer definition cache

Andy Zhang
Hi,

Please review RFC 151 http://trac.osgeo.org/mapguide/wiki/MapGuideRfc151. It proposed to add a cache for layer definitions. The performance of rendering map will be improved by this change.

Best Regards
Andy
_______________________________________________
mapguide-internals mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapguide-internals
Reply | Threaded
Open this post in threaded view
|

Re: Please review RFC151: Add layer definition cache

Jackie Ng
Hi Andy,

There is a PreCacheMaps property in serverconfig.ini that allows mgserver to pre-create a specified list of MgMap instances from the list of Map Definitions set.

With the introduction of the layer definition cache, does using PreCacheMaps allow us to pre-load this cache?

Similarly, does a call to MgResourceService.GetResourceContents() take advantage of this new layer definition cache if the list of resource ids includes layer definitions?

- Jackie
Reply | Threaded
Open this post in threaded view
|

Re: Please review RFC151: Add layer definition cache

Andy Zhang
Hi Jackie,

Thanks for your feedback.
Currently, the internal object in the resource service cache is MdfModel::LayerDefinition object. It is got by method MgLayerBase::GetLayerDefinition(m_svcResource, layerid). I will update the code where calls MgLayerBase::GetLayerDefinition(m_svcResource, layerid) to use the cache. So both PreCacheMaps and MgResourceService.GetResourceContents() will NOT take advantage of the new cache now. We may add more internal objects to the resource service cache later.

Best Regards
Andy

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of Jackie Ng
Sent: Monday, September 21, 2015 2:43 PM
To: [hidden email]
Subject: Re: [mapguide-internals] Please review RFC151: Add layer definition cache

Hi Andy,

There is a PreCacheMaps property in serverconfig.ini that allows mgserver to pre-create a specified list of MgMap instances from the list of Map Definitions set.

With the introduction of the layer definition cache, does using PreCacheMaps allow us to pre-load this cache?

Similarly, does a call to MgResourceService.GetResourceContents() take advantage of this new layer definition cache if the list of resource ids includes layer definitions?

- Jackie



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Please-review-RFC151-Add-layer-definition-cache-tp5225108p5225118.html
Sent from the MapGuide Internals mailing list archive at Nabble.com.
_______________________________________________
mapguide-internals mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapguide-internals
_______________________________________________
mapguide-internals mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapguide-internals
Reply | Threaded
Open this post in threaded view
|

Re: Please review RFC151: Add layer definition cache

Jackie Ng
If there's no other questions, you have a +1 from me.

- Jackie
Reply | Threaded
Open this post in threaded view
|

Re: Please review RFC151: Add layer definition cache

Haris Kurtagic
In reply to this post by Andy Zhang
+1
Haris

On Mon, Sep 21, 2015 at 9:40 AM, Andy Zhang <[hidden email]> wrote:

> Hi Jackie,
>
> Thanks for your feedback.
> Currently, the internal object in the resource service cache is
> MdfModel::LayerDefinition object. It is got by method
> MgLayerBase::GetLayerDefinition(m_svcResource, layerid). I will update the
> code where calls MgLayerBase::GetLayerDefinition(m_svcResource, layerid) to
> use the cache. So both PreCacheMaps and
> MgResourceService.GetResourceContents() will NOT take advantage of the new
> cache now. We may add more internal objects to the resource service cache
> later.
>
> Best Regards
> Andy
>
> -----Original Message-----
> From: [hidden email] [mailto:
> [hidden email]] On Behalf Of Jackie Ng
> Sent: Monday, September 21, 2015 2:43 PM
> To: [hidden email]
> Subject: Re: [mapguide-internals] Please review RFC151: Add layer
> definition cache
>
> Hi Andy,
>
> There is a PreCacheMaps property in serverconfig.ini that allows mgserver
> to pre-create a specified list of MgMap instances from the list of Map
> Definitions set.
>
> With the introduction of the layer definition cache, does using
> PreCacheMaps allow us to pre-load this cache?
>
> Similarly, does a call to MgResourceService.GetResourceContents() take
> advantage of this new layer definition cache if the list of resource ids
> includes layer definitions?
>
> - Jackie
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/Please-review-RFC151-Add-layer-definition-cache-tp5225108p5225118.html
> Sent from the MapGuide Internals mailing list archive at Nabble.com.
> _______________________________________________
> mapguide-internals mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/mapguide-internals
> _______________________________________________
> mapguide-internals mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/mapguide-internals
>
_______________________________________________
mapguide-internals mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapguide-internals