Thanks for the quick reply, merrells! I'm glad to hear that access control will be coming, and in the meantime I think I'll still go ahead and implement sync, as I assume that I could add the access control easily later?
Yes, we will endeavor to make it easy to add code to an existing app to enable access control.
But, we are not promising to migrate existing databases... We might, but we also might not.
11 Oct 2011, 12:38 AM
Thank you John ! And so you said the timestamps are used but does it check the time when the guy was online/offline ?
(sorry if it sounds stupid but I would like to be sure)
at 08:00 user1 and user2 start to work online
at 09:00 user1 has not network so he works "offline" on localdata
at 09:30 user2 who is still online changes the data "name"
at 10:00 user1 who is still offline changes the data "name" which is after user2 but not yet synchronized with the server because offline
at 11:00 user1 is back online and synch..
Which timestamp is used ?
1) when user1 got offline at 9:00 (so before user2) ? So user1 who were offline "lose"
2) when user1 changed the data (even if he was offline) at 10:00 (so after user2) ? So user1 who were offline "wins"
Am I required to define a localstorage store for a model with syncstorage to work?
No, there's no notion of on or off line in the system. Just the current time.
(Full disclosure: We don't really use just the wall clock time. It's actually
a logical clock that has time as a component. And we also synchronize
the logical clocks of all the replicas of a datastore... so in effect it's a global
No, you define a 'syncstorage' store. It actually creates a 'localstorage' store for you, and also a proxy for performing the synchronization with the servers.
18 Oct 2011, 12:56 AM
Ext Premium User
Issue with Sync beta service?
We have been integrating sync service in our app. It worked very well on Friday last week.
However, currently (Tuesday, 18 Oct) the sync service responds with a 502 Bad Gateway
Can you please have a look?
Yes, the service went down about 6 hours ago. 12:30 am PST. I'm looking at it now.
I think we accidentally picked up a breaking change from a dependency.
Will update here when it's fixed.
Can someone post a working example. I have tried different configurations for the syncstorage and cannot make it work.
Help will be greatly appreciated.
18 Oct 2011, 10:37 AM
Ext Premium User
Perhaps it doesn't work because currently the service is down?
Merrells is working on it...