- From: Gene Lian <clian@mozilla.com>
- Date: Thu, 6 Feb 2014 02:33:44 -0800 (PST)
- To: EDUARDO FULLEA CARRERA <efc@tid.es>
- Cc: public-sysapps@w3.org, Ehsan Akhgari <ehsan@mozilla.com>, Andrew Overholt <overholt@mozilla.com>, Jonas Sicking <jonas@sicking.cc>
Sorry for the delayed response. Just came back from CNY holidays. Please see the in-line response. ----- Original Message ----- > From: "EDUARDO FULLEA CARRERA" <efc@tid.es> > To: "Gene Lian" <clian@mozilla.com>, public-sysapps@w3.org > Cc: "Ehsan Akhgari" <ehsan@mozilla.com>, "Andrew Overholt" <overholt@mozilla.com>, "Jonas Sicking" <jonas@sicking.cc> > Sent: Wednesday, February 5, 2014 6:53:08 PM > Subject: RE: W3C Working Draft for Data Store API > > Hi Gene, > > Great piece of work. Thanks. I have a few questions: > -How to ensure uniqueness of the DataStore 'name'? This is a good question. I think we somehow need to stop that when registering the apps' manifests. Fire https://github.com/airpingu/data-store-api/issues/16 > -Any difference between 'add' providing an 'id' as argument and 'update' that > is update (data, id) vs. add (data, id) ? In case no difference, do we need > both? Just hope to make the operations more explicit so that the caller can handle the errors properly. > -Have you thought about adding the additional parameter 'data' to > DataStoreChangeEvent, so that the app can update on the fly when receiving > the events. In case there is any reason not to do that, what is the value > added by having 'id' and 'operation' in DataStoreChangeEvent, if the user > needs to invoke DataStore.sync() anyway to perform the synchronization? I'd prefer letting the sync(...) function do the real synchronization in any way. That is, the onchange event just plays a role of notification. This can add more flexibilities of letting apps decide when to really do the sychronization. For example, 10 onchange events will then trigger one sync(...), thus avoid IPCs carrying too many data records to slow down the performance. Gene
Received on Thursday, 6 February 2014 10:34:11 UTC