View Full Version : Store.sync() only seems to work from site > local storage, not local storage > site
3 Jun 2010, 8:49 AM
Is the meant to be like this? The method name (sync) sounds otherwise.
3 Jun 2010, 9:57 AM
Think of a Store as a subset of some remote data source. In this case the 'remote' data source is actually local, but in could in principle be anywhere, accessed over HTTP.
On top of this subset is a delta of records added, records changed and records deleted. When we sync, we are applying that delta to our remote source via a Proxy. Sync is just the combination of the Create, Update and Delete actions. I'll think about the naming of that method though, suggestions welcome.
3 Jun 2010, 10:53 AM
sync is good. I was just going over the current save method on a writable Store with a client, and mentioned that the 4.0 version would be the more logical name "sync" we all agreed that that was the correct term for the operation.
Powered by vBulletin® Version 4.1.5 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.