JDO vs JPA for Java on Google App Engine

前端 未结 12 645
生来不讨喜
生来不讨喜 2020-12-12 12:22

I want to develop my project on Google App Engine with Struts2. For the database I have two options JPA and JDO. Will you guys please suggest me on it? Both are new for me a

12条回答
  •  渐次进展
    2020-12-12 12:52

    For the record, it is Google App Engine (GAE), so we play with the Google rules not with the Oracle/Sun rules.

    Under it, JPA is not suitable for GAE, it is unstable and it does not work as expected. Neither Google is willing to support it but the bare minimum.

    And for other part, JDO is quite stable in GAE and it is (in some extend) well documented by Google.

    However, Google does not recommend any of them.

    http://code.google.com/appengine/docs/java/datastore/overview.html

    Low-level API will give the best performance and GAE is all about performance.

    http://gaejava.appspot.com/

    For example, add 10 entity

    Python :68ms

    JDO :378ms

    Java Native :30ms

提交回复
热议问题