Hi all,
i'm currently writing an application using Couchbase Lite on Android.
And I have quite a mystery bug.
At startup, I try to write a document to Couchbase, and have it published in a view.
My map function is correctly called but, when i restart the application, the document doesn't appear in the view.
I've tried to export my application sqlite DB and open it in DBeaver, and the table mapping the view is empty after I run the application. As a consequence, and since my map code is called during application run, it seems to me that the view is not correctly persisted to disk.
Am I wrong ? (I guess so, but I don't understand how)
If I'm right, how can I make sure my couchbase DB is correctly persisted to disk ?
If I'm wrong, there must be something I don't understand, but what ? In other words, can someone explain to me the way a document is persisted ? To my mind, the new revision is written, then if a query is made on a view, the view index is updated (and at that time only the view is persisted to disk). I must be wrong, no ?