The documentation for this endpoint says that it returns the “quantity of documents replicated by the given user”.
The sample JSON looks like this:
{
"limit": 10000,
"users": {
"_id": "replication-count-mary",
"_rev": "5-cd3252e852ae075da216c3c3fe461291",
"user": "mary",
"date": 1595328973273,
"count": 58
}
}
I have a few questions about this:
- I often use the words “replication” and “sync” interchangeably, is there actually a difference?
- Does the
date
property represent the most recent date that this user replicated or is it the date that the API call was made? - Does the
58
in the example above represent total doc count for the user (as the nameusers-doc-count
suggests) or just changes? - If it represents just changes, is it the sum total of local (device) and remote (server) changes?
- If it represents total doc count, is there a reason we describe it as “documents replicated” (my assumption is that we do not replicate 100% of a user’s documents every time they sync)?
- I’m assuming this is stored as a document in a database (as opposed to being calculated on the fly), if so, which database is it in?
cc: @binod