谷歌应用程序引擎中的db和ndb的优缺点 [英] pros and cons of db and ndb in google app engine
问题描述
我在堆栈溢出中看到了这一点,但是我想知道是否有任何理由使用DB实体模型,以及使用哪个或哪些的具体优缺点。
我已经读过ndb,它有点快,它有助于缓存。他们在文档中有很多信息,但并不直接说ndb更好。至少我还没有找到。
据我可以告诉ndb是db的进化,保持独立以保持兼容性。
看看小抄,详细介绍主要区别
https://docs.google.com/document/d/1AefylbadN456_Z7BZOpZEXDq8cR8LYu7QgI7bt5V0Iw/mobilebasic
但它没有提及其他特性,例如计算属性。
如果您正在开始一个新项目,我看不到不要使用ndb和任何理由。
编辑:文档的Alt链接: https://docs.google.com/document/d/1AefylbadN456_Z7BZOpZEXDq8cR8LYu7QgI7bt5V0Iw/edit#
I have seen a little of this in stack overflow but I am wondering if there is any reason to use the DB entity model and what the specific pros and cons of using on or the other are.
I have read the ndb is a little faster and that it helps with caching. They have a good bit of info in the docs but don't really straight out say that ndb is better. At least I haven't found that yet.
As far as I can tell ndb is an evolution of db, kept seperate to maintain compatability.
Have a look at the cheat sheet, it details the main differences
https://docs.google.com/document/d/1AefylbadN456_Z7BZOpZEXDq8cR8LYu7QgI7bt5V0Iw/mobilebasic
But it does not mention the other features such as computed properties.
If you are starting a new project I see no reason not to use ndb and every reason to.
EDIT: Alt link for document: https://docs.google.com/document/d/1AefylbadN456_Z7BZOpZEXDq8cR8LYu7QgI7bt5V0Iw/edit#
这篇关于谷歌应用程序引擎中的db和ndb的优缺点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!