-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Generating and/or validating db indexes at startup time
PostPosted: Wed Nov 10, 2010 12:09 pm 
Newbie

Joined: Thu Dec 18, 2003 4:13 am
Posts: 19
Hello,

I'm just wondering if hbm2ddl could also include "advanced" indexes generation/validation.
More specifically, queries with where-clauses on business columns should probably be executed against indexes on the RDBMS (if possible), since this can have a significant impact on performances.

On the one hand, I know that the @Index annotation exists, but it is not always used because it is not known or because it is not part of JPA either, which can be a portability issue.

On the other hand, each RDBMS has its own set of tools to detect slow queries or return the execution plan, but these tools are not always well mastered by developers who tend to focus on the code and the junit tests (that don't deal with performances).

Also, Hibernate core provides statistics on Session/EntityManager and/or SessionFactory/EntityManagerFactory, including the slowest query retrieval, but they do not give hints on how to improve performances (even if they give good information on how many operations where performed).

So, would hibernate tools benefit from such a feature ? Generating indexes when missing, or having some WARNINGs at startup if an index is missing, with ideally the SQL command to execute ? Would it be difficult to add such a feature ?

Regards,
Xavier


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.