← Back to team overview

u1db-discuss team mailing list archive

Re: Required data field

 

On Fri, 2011-12-02 at 16:54 +0800, Ben Lau wrote:
> However, in order to make the sync engine works, application programer
> must provide extra field like the last modified time or revision no/id
> etc. 
> 
> So I want to ask , what kind of fields that must be stored with
> "document"?

You don't need to store any particular fields in a document at all; just
the data that you care about. Your u1db implementation itself will track
the metadata that it needs to do syncing correctly; you never have to
worry about it as an application developer :)

sil





Follow ups

References