[mapguide-internals] MapGuide RFC 36-ImproveEnumerateResourcesAPI's performance

Jason Birch Jason.Birch at nanaimo.ca
Mon Sep 17 15:14:14 EDT 2007


Oh, duh.  

I wasn't thinking about the number of children varying based on the user
that is logged in.

Never mind :)

Jason
 

-----Original Message-----
From: mapguide-internals-bounces at lists.osgeo.org
[mailto:mapguide-internals-bounces at lists.osgeo.org] On Behalf Of Steve
Dang
Sent: Monday, September 17, 2007 12:11
To: MapGuide Internals Mail List
Subject: RE: [mapguide-internals] MapGuide RFC
36-ImproveEnumerateResourcesAPI's performance

There will be a performance penalty as the API needs to determine how
many children at the leaf folders (based on permissions, this number is
different for a specific user).

As mentioned in the RFC, the performance of the EnumerateResources API
depends on the recursion depth and how effectively the tree hierarchy of
resources is laid out. For small number of resources (e.g. < 1,000)
returned per request, then the performance may be acceptable when the
"computeChilden" flag is set to true.

Steve.

-----Original Message-----
From: mapguide-internals-bounces at lists.osgeo.org
[mailto:mapguide-internals-bounces at lists.osgeo.org] On Behalf Of Jason
Birch
Sent: Monday, September 17, 2007 12:35 PM
To: MapGuide Internals Mail List
Subject: RE: [mapguide-internals] MapGuide RFC 36
-ImproveEnumerateResourcesAPI's performance


Would it be a lot of work or performance penalty to change this so that
if there are no children in the leaf folders you return a 0?  This would
allow for different display of empty folders, and would also allow the
UI to prevent an additional EnumerateResources fetch on the empty folder
when/if it's selected by the user.

Jason

-----Original Message-----
From: mapguide-internals-bounces at lists.osgeo.org
[mailto:mapguide-internals-bounces at lists.osgeo.org] On Behalf Of Steve
Dang
Sent: Monday, September 17, 2007 11:22
To: MapGuide Internals Mail List
Subject: RE: [mapguide-internals] MapGuide RFC 36 -
ImproveEnumerateResourcesAPI's performance

Yes, the EnumerateResources API does return the computed number of
folders and documents for all folders, except for the leaf level
folders, these numbers will be set to -1 when the "computeChildren" flag
is false. It's up the client to choose how to display the folders based
on these numbers.

This API does not affect any other API.

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

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


More information about the mapguide-internals mailing list