vadimk wrote:* when preparing the project template I would need to manually strip off XML nodes for records attached outside the template task (10-25% of effort when I was doing my cloning script; additional 20% of effort comparing to same logic if done in relational database)
Ideally, this shouldn't be too complex - "configuration" shouldn't have major external dependency. I expect, that parent task GUID/parent user GUID will be enough for most cases, and it's simple to remap them using text search/replace in XML file.
vadimk wrote:* when importing hopefully the configuration management would merge / append configuration records without removing records not found in the XML file (showstopper if not)
Yes, it's just add new values and don't touch existing.
vadimk wrote:* the problem would still remain of remapping GUIDs - basically the part of the configuration management would be to generate the import configuration template from the seed template, which would include producing the new XML from the pre-existing XML, and generate and properly propagate all GUIDs changes (about 50% of effort in the cloning script)
Yes, problem will occurs if you apply config to the same database. The good news - remapper can be text processing utility, which parse XML, search for GUID and replace each GUID to another one.
vadimk wrote:* the obvious value of database independence (but it is mostly value for you - I always use and will use SQL Server)
Yes, we rarely have DBMS specific problems.
vadimk wrote:* another value is stability - instead of going after the details of database structure (including ways of handling long text) using this method would allow to abstract the logic and stay reliable (reliability + 10% of saved effort)
ok
vadimk wrote:* the issue where I failed with my cloning script is cloning filter definitions since very special internal structure that needs to be parsed espocially in cases of UDFs; preparing the new filter definitions would require as much effort to update it in XML as inside the database itself (failed effort, but took about 10% of effort while I was working on my cloning script)
Can copy/paste GUIDs in text XML file help there ?
vadimk wrote:* both methods would require the server restarts after executing; however, going after database could be programmable while using ServerManager is the multi-step manual activity - assuming the pre-existing XML is prepared the first step would be running the process to clone XML and then there will be manual step of using configuration management to apply it; and the third step would be to restart the run-time environment
Yes, it's difficult to modify DB this way because TS store a lot in internal caches/buffers, we cannot update in-memory structures after database changes.