[mapguide-internals] MapGuide RFC
36-ImproveEnumerateResourcesAPI's performance
Traian Stanev
traian.stanev at autodesk.com
Mon Sep 17 15:12:55 EDT 2007
Is EnumerateResources still affected by the DBXML bug where it would
always validate the returned XML. As far as I remember that was an
enormous overhead with EnumerateResources in the past.
Traian
-----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 3:11 PM
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