Concerns: Will the switch be clean ?
Concerns: Time consumption.
On Oct 31, 2014, at 3:42 AM, Nithin Haridas <nithinh...@gmail.com> wrote:We have been using couchbase lite in IOS for analytics, where the device pushes data to the server (one way only).There is a lot of data that gets logged that is not going to be useful once it is replicated on the server.
Delete the local database and re-create it and all connected replications.
• Purge the documents, once replication is stopped.
On Oct 31, 2014, at 3:42 AM, Nithin Haridas <nithinh...@gmail.com> wrote:
We have been using couchbase lite in IOS for analytics, where the device pushes data to the server (one way only).There is a lot of data that gets logged that is not going to be useful once it is replicated on the server.
Delete the local database and re-create it and all connected replications.
Thanks Jens for your inputs.
As you said, data collection is indeed a non-intensive use case that doesn't really need couchbase.
But it's off the shelf functionalities help.
Also, we want to test the waters before moving more critical data to couchbase where bi directional replication will be in use.
Our database is completely push only for analytics though.
So delete and recreate does looks like a viable option.
This is what I intend to do.
1) check for file size and delete database after a certain threshold size .
2) recreate the database and replication objects.
3) Add all incoming data to a temporary db while the above process is going on.
4) Copy the data from temporary db to the recreated db.
Does this sound good?
Is the delete process fast enough that there is little risk from interruptions like app backgrounding?
Really appreciate the help.