The problem I'm having is that I can't monitor total/completed documents when replicating.
Just curious if this is an issue with BigCouch or ... something else?
The first element in the array has a very bizarre status value of something like this "Processed [113, <<"g1AAAAAA...". The second element in the JSON array is what I want.
"status": "Processed [113,\n <<\"g1AAAAGTeJzLYWBg4MhgTmGQTMpMT84vTc4wdMgs0DU00DU10DW0NNe1MMoBKmFKZEiS____f1YiFxGKkxSAZJI9WD0bMeodQOrjweqZiVGfAFJfD1bPSoT6PBYgydAApIBa5mclihKtZwFEz_6sRB6i9RyA6LlPnF8geh5A9AD9Y5oFAOzYcW8\">>] / [113,\n <<\"g1AAAAGZeJzLYWBg4MhgTmGQSspMT84vTc4wcsgs0DU00DW0NNU1MjLTNTTOAaphSmRIkv___39WIhcxqpMUgGSSPVgDG1EaHEAa4sEamInSkADSUA_WwEqMhjwWIMnQAKSAeuZnJYoSr2kBRNP-rEQekCZJmCZDqCZTkD5zXQsjJD0HIHruQ71DlJ4HED1AH5lmAQAB1nKJ\">>] changes",
But if it could focus on the second element in the array ... that status field seems to be parseable from CouchCocoa. Is that what I would need?
Makes perfect sense. One object for pull and one for push. I wasn't sure ... I thought maybe BigCouch introduced one for managing documents across the cluster.
{
continuous: truesource: "test1"status: "Idle"target: "xxx"task: "repl003"type: "Replication"
},{
continuous: trueprogress: 21source: "xxx"status: "Processed 10 / 48 changes"target: "test1"task: "repl004"type: "Replication"
}
On Dec 17, 2014, at 9:46 AM, Ami Kapadia <ami....@gmail.com> wrote:I don't get data like "started_on" or "updated_on". Any idea on this? I want to display data like "Last sync time" and "All data are synced or not". So, those data will be helpful.
On Dec 17, 2014, at 9:46 AM, Ami Kapadia <ami....@gmail.com> wrote:I don't get data like "started_on" or "updated_on". Any idea on this? I want to display data like "Last sync time" and "All data are synced or not". So, those data will be helpful.Are those properties that are in CouchDB's _active_tasks? I don't think we've implemented them.We may have ignored "started_on" because your app starts the replication itself, and if capturing the time is important, it can do that itself.
You can tell if all data is synced: the "status" property will change to "Idle". (Or in the case of a non-continuous replication, the task will stop.)
—Jens
On Dec 18, 2014, at 5:31 AM, Ami Kapadia <ami....@gmail.com> wrote:What if I want last sync time? Is there any property or direct way to get it?
If we get offline, and I am adding some data, do we get status like "these many records are remaining to sync"?
No. There's an unmerged branch named "feature/unpushed" that adds a [native] API to get that status, though, but it doesn't expose that via the REST API. (I should merge that branch for 1.1…)