休眠:内存问题?缺点是什么? [英] Hibernate: memory issues? disadvantages?
问题描述
是否正确?还有使用休眠的更多弊端?有些人还告诉我,由于对象之间的所有依赖关系,当数据库非常大时,使用这些对象变得混乱,但我无法真正想象它。有没有人有这方面的一些经验?
谢谢: - )
其中一些是: 其他一些人也认为存在缺点用于Hibernate。
$ b
Im working with Hibernate 3.6 and until today I couldnt find any disadvantages of using it. But today someone told me that applications using Hibernate will get memory problems when the project gets bigger. This would happen because there would be a lot of objects (hibernate-pojo-objects) which will need to be created and stored, compared to a application which doesnt use hibernate.
is that correct? and are there any more disadvantages of using hibernate? some also told me that working with the objects becomes confusing when the database is really big because of all the dependencies between the objects, but I cant really imagine it. has anybody some experiences with this?
thanks :-)
Some of them are :
- Little or no capabilities for remote access and distributability.
- Mapping schemas can be tedious and O/R mapping has its tricks like using lazy initialization, eager loading etc. What works for one may not work for another.
- Limited clustering capabilities.
- Large data sets can still cause memory issues.
- Support for security at a database level only and no support for role based security without any add on APIs like Aspect Oriented Programming etc.
Some other people also think that there are disadvantages for Hibernate.
这篇关于休眠:内存问题?缺点是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!