Hibernate Team |
 |
Joined: Thu Apr 05, 2007 5:52 am Posts: 1689 Location: Sweden
|
Hi,
it might help if you post your entity code and some log output.
Are you sure that the loading of collections is slowing indexing down? There are many parameters which influence the indexing speed, some are Hibernate specific and some are Lucene specific. I recommend you refer to the indexing sections in the online documentation. There is also a section describing how to batch index in a most efficient way.
Regarding the re-fetching of collections - if all relations for the entity to be indexed are already resolved there should be no additional db access. I think it would help to see your code and what queries you are trying to run.
--Hardy
|
|