On Nov 13, 2012, at 10:43 AM, Pulkit Singhal <pulkitsing...@gmail.com<mailto:pulkitsing...@gmail.com>> wrote:
Are filtered replication rules saved locally and run every time in TouchDB-iOS on launch without being explicitly invoked?
Persistent replications are, as the name implies, stored locally (in a special database named _replicator.) The info saved is the name of the local database, the URL of the remote db, flags like ‘continuous’, etc.
I ask because I changed the name of the database both locally and remotely in my test app but the older database still showed up in the logs attempting to replicate:
How did you ‘change the name’ of the database? There’s no API for that :-/ If you went into the filesystem and renamed the database file, the replicator’s not going to know about that, so the replication document will still have the old name init.
—Jens