[mapguide-internals] Re: Please review RFC 74
Christine.Bao at autodesk.com
Tue Jul 7 23:39:35 EDT 2009
Thank you for your reply.
DbXml doesn't have "cascade references" like RDBMS, so I'm going to enumerate all the referencing resources and update them one by one. As another talk with Kenneth said, this may be time-consuming, but it's the only way to do this. A good news is: because this are done in server side by a single request, it's much faster than Maestro's way which sends each update in one request.
About how to find the referencing resources, I'll use EnumerateReferences() API which actually does a xml query.
I'm not sure about what is "external" resources. I'll update all the referencing resources no matter it's in the same folder or outside.
It can't fix unresolved reference, that is if the link is already broken, user has to fix it manually.
The copy operation you mentioned is cool. It may be covered in another ticket http://trac.osgeo.org/mapguide/ticket/606, but it's not covered by this RFC.
Thanks & regards,
From: Jason Birch <Jason.Birch at nanaimo.ca>
Subject: [mapguide-internals] RE: Please review RFC 74
To: MapGuide Internals Mail List <mapguide-internals at lists.osgeo.org>
Message-ID: <26D0CD10F2AC5B4E9C48C3F17D577BEA31963D43 at kendrick>
Content-Type: text/plain; charset="us-ascii"
I'd be interested in seeing some details on how this is going to be implemented. Does DbXML have some kind of relational system that allows you to just say "cascade references", or are you going to have to do a text based search/replace? Will it be performed on both "external" resources, and the resources in the folder being renamed? What will happen if you run into an unresolvable reference during the cascade (something that was broken during an earlier move?)
I'm guessing that there is no room for this in the current RFC, but it would be cool if this kind of attention could be paid to the Copy operation as well. In some cases, you want resources to retain their original references during a folder copy, but in others you would want internal references updated to point to the new location.
For future RFCs, it would be cool if you could post the URLs when requesting review.
More information about the mapguide-internals