在谷歌应用程序引擎中使用低级API用于数据存储?这不好吗? [英] Using low level api for datastore in google app engine ? is it bad?

查看:91
本文介绍了在谷歌应用程序引擎中使用低级API用于数据存储?这不好吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

几乎没有关于如何在数据存储区使用低级api的文档,以及关于JPA和JDO的很多文档以及它如何转化为它。



我的问题是:在针对JPA或JDO规范进行编码方面有什么优势,而不是直接访问数据存储的低级别API?



从最初的样子来看,这看起来简单直接,但我不确定是否有充足的理由不这样做。



感谢
Cx

解决方案

直接使用低级API。如果你想要更高一点的水平,你应该尝试一些Thilo提到的替代方案。使用更高级别的API的优点并不总是适用于每个开发人员。例如,使用JDO / JPA对于已经了解其中一个或已经拥有使用它们的代码的人有意义。但是对于新开发者来说,学习JDO / JPA可能比仅仅使用本地API更困难。

There is little documentation on how to use the low level api for datastore and quite a lot on JPA and JDO and how it translates to it.

My question is: is there any advantage in coding against the JPA or JDO specs instead of accessing directly the low level api for datastore ?

From an initial look, it seems simple and straight forward but I am not sure if there are good reasons why not to do it.

Thanks Cx

解决方案

There is nothing wrong with using the low level API directly. If you want something a little higher level, you should try out some of the alternatives Thilo mentions. The advantages of using a higher level API are not always applicable to every developer. For example, using JDO/JPA makes sense for people that already know one of them, or already have code using them. But for a new developer, learning JDO/JPA is probably harder than just using the native API.

这篇关于在谷歌应用程序引擎中使用低级API用于数据存储?这不好吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆