Java ORM for MongoDB的开销是多少 [英] What the overhead of Java ORM for MongoDB

查看:55
本文介绍了Java ORM for MongoDB的开销是多少的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将Java ORM用于MongoDB的开销是多少,或者更好的是我们在基本驱动程序级别进行读写?

What is the overhead of using Java ORM for MongoDB, or its better that we go the at basic driver level to read or write?

我们将为我们的要求之一添加Mongo DB.

We will be adding Mongo DB for one of our requirements.

有几种Java的Java ORM映射工具
-morphia
-spring-data
-其他

There are couple of java ORM mapping tools for java
-morphia
-spring-data
-others

Morphia的最新版本已于一年多以前发布
但Spring数据仍处于主动维护状态. 如果我现在要开始,应该使用哪一个,

Morphia last version was released more than a year ago
but Spring data is actively maintained. Which one should be used if I am about to start now,

推荐答案

使用ORM会降低性能,但会加快开发速度.这里有一个权衡.

Using ORM decreases the performance but it speed up the development. There is a trade off here.

对于ORM工具,Morphia是最稳定的工具. 在这里,您可以通过其性能来发现Morphia和Basic Mongo Driver之间的比较.

For ORM tools, Morphia is most stable one. Here you can find the comparison between the Morphia and Basic Mongo Driver by their performance.

这篇关于Java ORM for MongoDB的开销是多少的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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