-->
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.  [ 3 posts ] 
Author Message
 Post subject: Hibernate core + JPA + Hibernate Search
PostPosted: Wed Jan 19, 2011 2:49 pm 
Newbie

Joined: Wed May 11, 2005 9:20 am
Posts: 4
Questions:
Application is using JPA + Hibernate....
JPA EntiryManager is a PersistenceContext (Cache) ….
We are also using Hibernate Search
(EntityManager (Cache) <--FullTextEntityManager)
At application load we re-index (Are we reading from the database and pushing the DAO's into the cache?)
When we perform FullTextQuery are we only searching the indexes and the cache or will it go against the database as well?

Trying to understand the scope of the searches....

Thank you


Top
 Profile  
 
 Post subject: Re: Hibernate core + JPA + Hibernate Search
PostPosted: Wed Jan 19, 2011 3:21 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Hi, welcome
Quote:
At application load we re-index (Are we reading from the database and pushing the DAO's into the cache?)

DAO's into the cache? sorry I don't understand that.

Quote:
When we perform FullTextQuery are we only searching the indexes and the cache or will it go against the database as well?

Most work will be done on the index. After the matching results have been identified and sorted, then pagination is applied and only the needed entities are loaded from the database by using batching and efficient loading by primary key, to make sure they are returned according to original structure and being consistent with the current database transaction.
You have the option to avoid all database hits by using Projections. mostly useful to provide "previews" and text extractions in a list of results, before loading a single entity after user selection.

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
 Post subject: Re: Hibernate core + JPA + Hibernate Search
PostPosted: Wed Jan 19, 2011 4:29 pm 
Newbie

Joined: Wed May 11, 2005 9:20 am
Posts: 4
s.grinovero wrote:
Hi, welcome
Quote:
At application load we re-index (Are we reading from the database and pushing the DAO's into the cache?)

Quote:
DAO's into the cache? sorry I don't understand that.



http://openejb.apache.org/3.0/jpa-concepts.html

Persistent Context (Cache)
|
EntityManager
|
FullTextEntityManager


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

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.