Alternative to using xincludes Hi Jon,
The xinc library is written in XQuery, and as a matter of fact may or may not be a full implementation of the spec. The bottleneck is probably walking all contents to find xinclude references, and replace them with the referred doc, and perhaps walking that too to find and expand xincludes recursively. I guess it would have helped it xdmp:node-replace and affiliated functions could be used on in-memory structures as well. Unfortunately, that is not the case. Perhaps this is good case to plea for this extension. Kind regards, Geert *Van:* [email protected] [mailto: [email protected]] *Namens *Jonathan Cook - FM&T *Verzonden:* dinsdag 21 februari 2012 11:57 *Aan:* MarkLogic Developer Discussion *Onderwerp:* [MarkLogic Dev General] Alternative to using xincludes Hi, Using the xinc:node-expand seems to be a very expensive operation so I wondered if there were any alternatives. For example a query to retrive a document based on a given attribute responds very quickly: <qm:elapsed-time>PT0.000773S</qm:elapsed-time> When adding in the xinc:node-expand it then takes: <qm:elapsed-time>PT0.351562S</qm:elapsed-time> Which is a huge difference and I have also seen much bigger variations than this? Thanks Jon
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
