Managing and Updating Temporal Documents
08 February 2015 05:24 PM
|
|
IntroductionHere we discuss management of temporal documents. DetailsIn MarkLogic, a temporal document is managed as a series of versioned documents in a protected collection. The ‘original’ document inserted into the database is kept and never changes. Updates to the document are inserted as new documents with different valid and system times. A delete of the document is also inserted as a new document. In this way, a temporal document always retains knowledge of when the information was known in the real world and when it was recorded in the database. API'sBy default the normal The temporal module ( All temporal updates and deletes create new documents and in normal operations this is exactly what will be desired. See also the documentation: Managing Temporal Documents. Updates and deletes outside the temporal functionsNote: normal use of the temporal feature will not require this sort of operation. The function For example, if you need to do a corb or other administrative transform, but do not want to update the system dates on the documents; say, you want to change the values M/F to Male/Female. | |
|