Thanks Mike. Seems there's no big difference between this two query. I got this from dev guide: "in the case of modifying a document, MarkLogic server creats new versions of the fragments ivolved in the opperation."
So, I'll treat document as row of table, and the primary key will be the URI, right? However, I cannot find a perfect way to generate the URI, any suggestions? Thanks. Regards, GL On Nov 20, 2013 12:20 PM, "Michael Blakeley" <[email protected]> wrote: > Broadly speaking there isn't much difference. Functions for node-level > update are mostly just a convenience for developers. Internally, both end > up doing much the same thing. An update writes an entire XML tree, plus the > term-list entries for any relevant indexes. > > That might sound inefficient if you are thinking about documents as > tables. But in most cases documents act more like rows. Try to design that > way, with a primary key as the document URI. > > -- Mike > > On 19 Nov 2013, at 19:36 , Guoliang Li <[email protected]> wrote: > > > Hi all, > > > > I'm totally new to MarkLogic. > > I know i can update a field by node-replace or document-insert. > > May i know the difference in term of poformance? Thanks. > > > > Btw, Our app will keep all history data. > > > > Regards, > > GL > > > > _______________________________________________ > > General mailing list > > [email protected] > > http://developer.marklogic.com/mailman/listinfo/general > > _______________________________________________ > General mailing list > [email protected] > http://developer.marklogic.com/mailman/listinfo/general >
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
