Confirmed users
483
edits
m (→Experiments: .) |
(→Shared indexedDBs for certified apps: add ds etherpad) |
||
| Line 129: | Line 129: | ||
Once we move to this model we will need a way to do the initial launch of the GCDS app to do the first population of the currently existing Contact Providers (i.e. local contacts datastore, Fb datastore, etc.). This process needs to be atomic. | Once we move to this model we will need a way to do the initial launch of the GCDS app to do the first population of the currently existing Contact Providers (i.e. local contacts datastore, Fb datastore, etc.). This process needs to be atomic. | ||
=== Shared indexedDBs for certified apps === | === Shared indexedDBs for certified apps or a way to add indexes to DataStore === | ||
I know, I know. We already have DataStore to share data between apps. But unfortunately, with the approach we are proposing here we will be duplicating contacts data in quite a massive way for very similar needs. Every Contact Consumer will need to have its own indexedDB built from the data obtained from the Contact Providers datastores and with its own indexes. The [[Gaia/Contacts/Data_Refactor#Contacts_data_consumers_.28in_Gaia.29|Contact Consumers that we currently have in Gaia]] have or will have very similar, if not identical, needs, so the indexedDBs that each app will be maintaining will have exactly the same data and the same indexes. This is a lot of duplication for the same purpose. Having a way to share a indexedDB between Gaia certified Contact Consumers containing the information about all the contacts shared by Contact Providers will allow us to save a high amount of disk space. | I know, I know. We already have DataStore to share data between apps. But unfortunately, with the approach we are proposing here we will be duplicating contacts data in quite a massive way for very similar needs. Every Contact Consumer will need to have its own indexedDB built from the data obtained from the Contact Providers datastores and with its own indexes. The [[Gaia/Contacts/Data_Refactor#Contacts_data_consumers_.28in_Gaia.29|Contact Consumers that we currently have in Gaia]] have or will have very similar, if not identical, needs, so the indexedDBs that each app will be maintaining will have exactly the same data and the same indexes. This is a lot of duplication for the same purpose. Having a way to share a indexedDB between Gaia certified Contact Consumers containing the information about all the contacts shared by Contact Providers will allow us to save a high amount of disk space. | ||
We found this [https://etherpad.mozilla.org/datastore interesting discussion about DataStore] where there are mentions to the possibility of allowing indexes in DataStore. That would be really helpful for this refactor. | |||
== FAQ == | == FAQ == | ||