On Wed, Sep 24, 2008 at 4:38 AM, dkrumholz
<[EMAIL PROTECTED]>wrote:

>
> Just getting started with Gears, I have some conceptual questions -
>
> 1. If I have an offline database and add a parent record with a db
> generated key and then child records with that key - how does the
> server db prevent collisions between my keys and another user's
> offline keys?


DB generated keys should never be the same so I don't think you would run
into this problem.  If you are creating your own keys, then you should make
sure you never use an existing keys.


>
> 2. What is the best way to allow a limited number of users (some not
> all) to share data? Do I need to rely on server data and build the
> user access requirements into the app?


Yes, that is correct.


>
>
> 3. What is the best method to grant and restrict access that allows
> for licensing of apps?


What exactly are you trying to accomplish?  If you want to restrict access
to shared data or restrict the ability to synchronize data for offline
usage, the code should be implemented on the serverside such that when a
user tries to sync they will send a request to sync and the server will
validate/respond with data or invalidate/respond with a denial.

-Ben

Reply via email to