interesting....  i as skim the NDB docs very quickly and the patch above i 
see that it is *very* similar to the "DB Datastore"/Big Table.  if the APIs 
are the same then we should just use the same DAL adapter with a parameter 
to use NDB.  Though because of the caching nature of NDB there may be a 
whole set of additional/different methods that need to be supported.

Saisha D: yes, the google:datastore in web2py currently is using the type 
of DB storage that you linked to (the only type of storage supported when 
web2py first integrated with GAE).

cfh

On Sunday, October 27, 2013 4:37:07 PM UTC-7, Massimo Di Pierro wrote:
>
> Thank you for the patch. I guess my question is why do we need a new 
> adapter? Is this for backward compatibility because otherwise it would 
> break apps that use Field('...',type='decimal(...)')?
>
> On Sunday, 29 September 2013 11:49:36 UTC-5, Quint wrote:
>>
>> Hi,
>>
>> I think web2py should support NDB for the Google Datastore.
>> NDB a newer datastore api which has automatic caching features built in.
>>
>> https://developers.google.com/appengine/docs/python/ndb/
>>
>> I think it would be great for GAE users to be able to use NDB because it 
>> potentially has better performance and can reduce the costs of your app 
>> (dependent of the type of app off course).
>>
>> In fact, i think it wouldn't be that hard to integrate it.
>>
>> I had a go at it and i only had to change a couple of lines in dal.py and 
>> it seems to work.
>> You can switch between NDB and DB because they both should store exactly 
>> the same data in the datastore.
>>
>> I attached a patch i made based on version 2.6.4
>> Maybe one of the developers could have a look.
>>
>> I'm not a web2py expert so this does need to be reviewed by someone with 
>> more in depth knowledge.
>> But maybe this could serve as a starting point.
>>
>> resources:
>>
>>
>> https://docs.google.com/document/d/1AefylbadN456_Z7BZOpZEXDq8cR8LYu7QgI7bt5V0Iw/mobilebasic
>>
>> http://dylanv.org/2012/08/22/a-hitchhikers-guide-to-upgrading-app-engine-models-to-ndb/
>>
>> Thanks!
>>
>>
>>
>>
>>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to