performance « Map « JPA Q&A





1. How to keep Hibernate mapping use under control as requirements grow    stackoverflow.com

I've worked on a number of Java web apps where persistence is via Hibernate, and we start off with some central class (e.g. an insurance application) without any time being spent ...

2. Hibernate One-to-Many cascade efficiency    stackoverflow.com

I have been learning Hibernate for the past few weeks, I have gotten most of what I learned to work but have a question on the efficiency of a One-to-Many mapping. ...

3. Performasure and hibernate    stackoverflow.com

I have some pojos, which are mapped to a tables in database. When I deploy my code into performance tuning environment, I receive bunch of org.hibernate.MappingException due to $performasure_j2eeInfo is added to ...

4. Strategies for performance optimizations on an inherited EJB3 application    stackoverflow.com

I was asked to have a look at a legacy EJB3 application with significant performance problems. The original author is not available anymore so all I've got is the source code ...

5. What is the performance price of mapping a SortedSet in Hibernate?    stackoverflow.com

In one of my mapped classes, I have a Set field mapped to the DB via hibernate. I now need this collection to be sorted according to some logic, which I ...

6. preventing OpenJPA N+1 select performance problem on maps    stackoverflow.com

When I have an entity that contains a Map, e.g.

@Entity
public class TestEntity {
    @ElementCollection(fetch = FetchType.EAGER)
    Map<String, String> strings = new HashMap<String, String>();
}
and I select ...

7. JPA 1.0 Entity class mapping improvements    stackoverflow.com

All, We have 300 entity classes that was generated from existing DB schema for a J2EE web application. We are facing performance issues in one of the application sections and wanted to know ...

8. hibernate mapping and performance    coderanch.com

hibernate 3 uses lazy loading. But, is it true that lazy load is mainly used when our POJO are like Class A { B b; } Class B { .. } i.e, POJO B is a class variable of POJO A, and meanwhile A and B map to two tables respectively ? 2. Without such class variable relation between the two ...

9. Map entity mode performance    forum.hibernate.org

Hello, I have an application with a dynamic data model. So I want to create Hibernate configurations and Hibernate session factories as my model is changing while my application is running. Since my model is changing, I cannot use POJO as entities and I would like to use maps instead. Do you see this model of data representation as a way ...





10. Performance Issue while updating Child Collection    forum.hibernate.org

I am facing Performance issue while storing(updating) the collection of childs. Here is the class Code: public class Folder { private Set folderSupplier = new HashSet(0); @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "folder") @NotAudited public Set getFolderSupplier() { return folderSupplier; ...

11. Inheritance strategy and performance issue    forum.hibernate.org

Hi all, I'm like to be sure of something about the different inheritance strategy. If the subclasses are very sollicitated, wouldn't it be better to adopt a table per class hierarchy strategy rather than table per subclass because of the joint query between the root table and the "sub tables" ? What could be the advantage of the second strategy? Vladislav ...

12. performance with value-type mapping?    forum.hibernate.org

I have a "product' entity with some property, product & property mapping: now, i want to get a property with a productid & name Product product = ...//load a product by id product.getProperties().get(name) //get the propery these code generate two sql: select ... from Product where ProductID ...

13. Performance on Dyanamically created mapping xmls    forum.hibernate.org

Hi, I'm developing a web application which dynamically creates mapping xml files (eg. xxx.hbm.xml) and put into class path. In this case I have to create Configuration and SessionFactory objects for the new mapping file as follows. sessionFactory = configuration.addResource(hbmFile).setProperty(Environment.HBM2DDL_AUTO, "create"). buildSessionFactory(); In here the connection pooler is initialize again and again when calling this. 1) Is there any way to ...

14. Poor dynamic map performance    forum.hibernate.org

Author Message djames Post subject: Poor dynamic map performance Posted: Mon Nov 14, 2005 2:20 pm Newbie Joined: Mon Nov 14, 2005 2:12 pm Posts: 2 We are seeing very poor performance for dynamic-mapped entities. A simple query takes over 20 seconds to complete, vs. around 1 second for the same query in SQL executed via straight JDBC. The ...

15. Any performance tips with HQL and inheritance?    forum.hibernate.org

Author Message diegoman2 Post subject: Any performance tips with HQL and inheritance? Posted: Wed Dec 21, 2005 4:33 am Newbie Joined: Tue Dec 13, 2005 9:05 am Posts: 6 Hi! Hibernate version: 2.1.8 Name and version of the database you are using: PostgreSQL 8.0 Mapping documents: Code:

16. performance problem with mapping    forum.hibernate.org

Need help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp Hibernate version: 3.05 Mapping documents: Code: hmmtb_next_id ...





17. Annotations vs Mappings (startup performance)    forum.hibernate.org

Does anyone know if the SessionFactory has a better performance starting up using annotations or mapping files? I understand there are many factors that make the results vary, but Im just asking for a: "overall annotations startup faster" or "no, there isn't any big difference". Maybe some figures might be nice. I'd do the tests myself, but currently because of WTP ...

19. Some performance discussion on ManyToMany...    forum.hibernate.org

Hi all who want to discuss. I have a simple n:m relationship EJB 3.0 annotated: TestCaseRevision.java Code: @ManyToMany(mappedBy="testCaseRevisionList", cascade={CascadeType.MERGE,CascadeType.PERSIST,CascadeType.REFRESH}, fetch=FetchType.LAZY) public List getTargetList() {return _targetList;} public void setTargetList(List p_targetList) {_targetList = p_targetList;} TestTarget.java Code: @ManyToMany(cascade={CascadeType.MERGE,CascadeType.PERSIST,CascadeType.REFRESH}, fetch=FetchType.LAZY) @JoinTable(name="qs_mapping_TestTarget") public List ...

20. manytomany collection performance    forum.hibernate.org

21. Hibernate & Inheritance - performance issue    forums.oracle.com