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
