pulling back purged docs

2014-09-26 Thread Seung Chan Lim
Hi, I'm trying to implement some purging into my phonegap app on iOS. The local db is getting big. If I purge the docs, what's the best practice for later getting them back? (i.e. get them re-replicated from the sync gateway?) slim -- You received this message because you are subscribed to

Re: pulling back purged docs

2014-09-26 Thread Jens Alfke
> On Sep 26, 2014, at 7:40 AM, Seung Chan Lim wrote: > > If I purge the docs, what's the best practice for later getting them back? > (i.e. get them re-replicated from the sync gateway?) In 1.0.2 it's a bit awkward; you'll need to create a new pull replication and set its documentIDs property

Re: pulling back purged docs

2014-09-26 Thread Seung Chan Lim
I'm on phonegap. Could you translate what you mean when you say "set its documentIDS property" ? Is there an attribute (i.e. "document_ids") to pass along with "source," "target," "continuous" and those? And populate it with a JSON stringified arrary of doc ids? slim On Friday, September 26

Re: pulling back purged docs

2014-09-26 Thread Jens Alfke
> On Sep 26, 2014, at 9:16 AM, Seung Chan Lim wrote: > > I'm on phonegap. Could you translate what you mean when you say "set its > documentIDS property" ? I was going to point you at the REST API docs for /_replicate