How couchbase handles the conflicting states between offline and online

mobile

#1

I have to develop a POS application that would be offline and sync data when user have access to internet. I want to know that How couchbase handles the conflicting states. e.g. Let there is sale happened on POS station 1 for item A. customer came with 2 quantities of Item A. At the same time station 1 was offline. and Local data show only 1 quantity remaining for Item A. But Actually sales manager had refill the stock some time ago when station 1 was offline. it means that stock refill will not showed on station 1 until database go into sync. My question is How This scenario will be handled in offline / online db states?


#2

See the “Conflicts” section of the Document class guide.