[hibernate-dev] hibernate-oracle10-testsuite Build Timed Out

2006-11-24 Thread qa

View results here -> http://cruisecontrol.jboss.com/cc/buildresults/hibernate-oracle10-testsuite?log=log2006112417
BUILD TIMED OUTAnt Error Message: build timeoutDate of build: 11/24/2006 00:00:17Time to build: Last changed: 12/31/2005 20:44:14Last log entry: less noisy




    Unit Tests: (0)    Total Errors and Failures: (0) 
 Modifications since last build: (first 50 of 2289)10864modified[EMAIL PROTECTED]//trunk/Hibernate3/src/org/hibernate/impl/SessionFactoryImpl.javaHHH-2259 : jta current session + auto-flush10862modified[EMAIL PROTECTED]//trunk/Hibernate3/src/org/hibernate/impl/SQLQueryImpl.javaHHH-2238 : SQLQuery.executeUpdate() + flush-modes10860modified[EMAIL PROTECTED]//trunk/Hibernate3/src/org/hibernate/util/ExternalSessionFactoryConfig.javaHHH-2246 : mbean + cache-provider-config setting10860modified[EMAIL PROTECTED]//trunk/Hibernate3/src/org/hibernate/jmx/HibernateServiceMBean.javaHHH-2246 : mbean + cache-provider-config setting10857modified[EMAIL PROTECTED]//trunk/Hibernate3/src/org/hibernate/persister/entity/JoinedSubclassEntityPersister.javaHHH-2242 : optimisitc-locking=none on joined-subclass10857modified[EMAIL PROTECTED]//trunk/Hibernate3/src/org/hibernate/engine/Versioning.javaHHH-2242 : optimisitc-locking=none on joined-subclass10857modified[EMAIL PROTECTED]//trunk/Hibernate3/src/org/hibernate/tuple/entity/EntityMetamodel.javaHHH-2242 : optimisitc-locking=none on joined-subclass10856modified[EMAIL PROTECTED]//trunk/Hibernate3/src/org/hibernate/impl/AbstractQueryImpl.javaHHH-2250 : Query.setEntity() with null entity10853modified[EMAIL PROTECTED]//trunk/Hibernate3/test/org/hibernate/test/AllTests.javaHHH-1851 : add tests to AllTests10852modified[EMAIL PROTECTED]//trunk/Hibernate3/src/org/hibernate/persister/entity/AbstractEntityPersister.javaHHH-1851 : relax special 'id' property handling10852added[EMAIL PROTECTED]//trunk/Hibernate3/test/org/hibernate/test/idprops/LineItem.javaHHH-1851 : relax special 'id' property handling10852added[EMAIL PROTECTED]//trunk/Hibernate3/test/org/hibernate/test/idprops/Person.javaHHH-1851 : relax special 'id' property handling10852modified[EMAIL PROTECTED]//trunk/Hibernate3/src/org/hibernate/persister/entity/AbstractPropertyMapping.javaHHH-1851 : relax special 'id' property handling10852added[EMAIL PROTECTED]//trunk/Hibernate3/test/org/hibernate/test/idprops/IdentifierPropertyReferencesTest.javaHHH-1851 : relax special 'id' property handling10852added[EMAIL PROTECTED]//trunk/Hibernate3/test/org/hibernate/test/idprops/Order.javaHHH-1851 : relax special 'id' property handling10852modified[EMAIL PROTECTED]//trunk/Hibernate3/doc/reference/en/modules/query_hql.xmlHHH-1851 : relax special 'id' property handling10852modified[EMAIL PROTECTED]//trunk/Hibernate3/src/org/hibernate/hql/ast/tree/DotNode.javaHHH-1851 : relax special 'id' property handling10852added[EMAIL PROTECTED]//trunk/Hibernate3/test/org/hibernate/test/idprops/Mapping.hbm.xmlHHH-1851 : relax special 'id' property handling10852modified[EMAIL PROTECTED]//trunk/Hibernate3/test/org/hibernate/test/legacy/CustomPersister.javaHHH-1851 : relax special 'id' property handling10852modified[EMAIL PROTECTED]//trunk/Hibernate3/src/org/hibernate/hql/ast/tree/FromElement.javaHHH-1851 : relax special 'id' property handling10852added[EMAIL PROTECTED]//trunk/Hibernate3/test/org/hibernate/test/idpropsHHH-1851 : relax special 'id' property handling10852added[EMAIL PROTECTED]//trunk/Hibernate3/test/org/hibernate/test/idprops/LineItemPK.javaHHH-1851 : relax special 'id' property handling10852modified[EMAIL PROTECTED]//trunk/Hibernate3/src/org/hibernate/persister/entity/EntityPersister.javaHHH-1851 : relax special 'id' property handling10852modified[EMAIL PROTECTED]//trunk/Hibernate3/src/org/hibernate/tuple/entity/EntityMetamodel.javaHHH-1851 : relax special 'id' property handling10849modified[EMAIL PROTECTED]//trunk/Hibernate3/test/org/hibernate/test/hql/ASTParserLoadingTest.javamore component type queries10848added[EMAIL PROTECTED]//trunk/Hibernate3/test/org/hibernate/test/lob/SerializableTypeTest.javalob testing10848added[EMAIL PROTECTED]//trunk/Hibernate3/test/org/hibernate/test/lob/LobHolder.javalob testing10848added[EMAIL PROTECTED]//trunk/Hibernate3/test/org/hibernate/test/lob/MaterializedBlobType.javalob testing10848deleted[EMAIL PROTECTED]//trunk/Hibernate3/test/org/hibernate/test/lob/LobTest.javalob testing10848added[EMAIL PROTECTED]//trunk/Hibernate3/test/org/hibernate/test/lob/BlobTest.javalob testing10848deleted[EMAIL PROTECTED]//trunk/Hibernate3/test/org/hibernate/test/lob/User.javalob testing10848modified[EMAIL PROTECTED]//trunk/Hibernate3/test/org/hibernate/test/AllTests.javalob testing10848modified[EMAIL PROTECTED]//trunk/Hibernate3/test/org/hibernate/test/lob/ClobTest.javalob testing10848added[EMAIL PROTECTED]//trunk/Hibernate3/test/org/hibernate/test/lob/LobMappings.hbm.xmllob testing10848deleted[EM

[hibernate-dev] hibernate-hsqldb-testsuite Build Completed With Testsuite Errors

2006-11-24 Thread qa

View results here -> http://cruisecontrol.jboss.com/cc/buildresults/hibernate-hsqldb-testsuite?log=log20061124030044
TESTS FAILEDAnt Error Message: /home/cruisecontrol/work/scripts/build-hibernate-db-matrix.xml:92: The following error occurred while executing this line: /home/cruisecontrol/work/scripts/build-hibernate-db-matrix.xml:83: The following error occurred while executing this line: /home/cruisecontrol/work/scripts/build-common-targets.xml:11: Build Successful - Tests completed with errors or failures.Date of build: 11/24/2006 03:00:44Time to build: 8 minutes 41 secondsLast changed: 12/31/2005 20:44:14Last log entry: less noisy




    Unit Tests: (945)    Total Errors and Failures: (5)testReturnPropertyComponentRenameorg.hibernate.test.legacy.SQLLoaderTesttestManyToManyPropertyReforg.hibernate.test.propertyref.PropertyRefTesttestUnionSubclassorg.hibernate.test.unionsubclass2.UnionSubclassTesttestFetchInSubqueryFailureExpectedorg.hibernate.test.hql.ASTParserLoadingTesttestJoinFetchPropertyReforg.hibernate.test.propertyref.PropertyRefTest 
 Modifications since last build: (first 50 of 2289)10864modified[EMAIL PROTECTED]//trunk/Hibernate3/src/org/hibernate/impl/SessionFactoryImpl.javaHHH-2259 : jta current session + auto-flush10862modified[EMAIL PROTECTED]//trunk/Hibernate3/src/org/hibernate/impl/SQLQueryImpl.javaHHH-2238 : SQLQuery.executeUpdate() + flush-modes10860modified[EMAIL PROTECTED]//trunk/Hibernate3/src/org/hibernate/util/ExternalSessionFactoryConfig.javaHHH-2246 : mbean + cache-provider-config setting10860modified[EMAIL PROTECTED]//trunk/Hibernate3/src/org/hibernate/jmx/HibernateServiceMBean.javaHHH-2246 : mbean + cache-provider-config setting10857modified[EMAIL PROTECTED]//trunk/Hibernate3/src/org/hibernate/persister/entity/JoinedSubclassEntityPersister.javaHHH-2242 : optimisitc-locking=none on joined-subclass10857modified[EMAIL PROTECTED]//trunk/Hibernate3/src/org/hibernate/engine/Versioning.javaHHH-2242 : optimisitc-locking=none on joined-subclass10857modified[EMAIL PROTECTED]//trunk/Hibernate3/src/org/hibernate/tuple/entity/EntityMetamodel.javaHHH-2242 : optimisitc-locking=none on joined-subclass10856modified[EMAIL PROTECTED]//trunk/Hibernate3/src/org/hibernate/impl/AbstractQueryImpl.javaHHH-2250 : Query.setEntity() with null entity10853modified[EMAIL PROTECTED]//trunk/Hibernate3/test/org/hibernate/test/AllTests.javaHHH-1851 : add tests to AllTests10852modified[EMAIL PROTECTED]//trunk/Hibernate3/src/org/hibernate/persister/entity/AbstractEntityPersister.javaHHH-1851 : relax special 'id' property handling10852added[EMAIL PROTECTED]//trunk/Hibernate3/test/org/hibernate/test/idprops/LineItem.javaHHH-1851 : relax special 'id' property handling10852added[EMAIL PROTECTED]//trunk/Hibernate3/test/org/hibernate/test/idprops/Person.javaHHH-1851 : relax special 'id' property handling10852modified[EMAIL PROTECTED]//trunk/Hibernate3/src/org/hibernate/persister/entity/AbstractPropertyMapping.javaHHH-1851 : relax special 'id' property handling10852added[EMAIL PROTECTED]//trunk/Hibernate3/test/org/hibernate/test/idprops/IdentifierPropertyReferencesTest.javaHHH-1851 : relax special 'id' property handling10852added[EMAIL PROTECTED]//trunk/Hibernate3/test/org/hibernate/test/idprops/Order.javaHHH-1851 : relax special 'id' property handling10852modified[EMAIL PROTECTED]//trunk/Hibernate3/doc/reference/en/modules/query_hql.xmlHHH-1851 : relax special 'id' property handling10852modified[EMAIL PROTECTED]//trunk/Hibernate3/src/org/hibernate/hql/ast/tree/DotNode.javaHHH-1851 : relax special 'id' property handling10852added[EMAIL PROTECTED]//trunk/Hibernate3/test/org/hibernate/test/idprops/Mapping.hbm.xmlHHH-1851 : relax special 'id' property handling10852modified[EMAIL PROTECTED]//trunk/Hibernate3/test/org/hibernate/test/legacy/CustomPersister.javaHHH-1851 : relax special 'id' property handling10852modified[EMAIL PROTECTED]//trunk/Hibernate3/src/org/hibernate/hql/ast/tree/FromElement.javaHHH-1851 : relax special 'id' property handling10852added[EMAIL PROTECTED]//trunk/Hibernate3/test/org/hibernate/test/idpropsHHH-1851 : relax special 'id' property handling10852added[EMAIL PROTECTED]//trunk/Hibernate3/test/org/hibernate/test/idprops/LineItemPK.javaHHH-1851 : relax special 'id' property handling10852modified[EMAIL PROTECTED]//trunk/Hibernate3/src/org/hibernate/persister/entity/EntityPersister.javaHHH-1851 : relax special 'id' property handling10852modified[EMAIL PROTECTED]//trunk/Hibernate3/src/org/hibernate/tuple/entity/EntityMetamodel.javaHHH-1851 : relax special 'id' property handling10849modified[EMAIL PROTECTED]//trunk/Hibernate3/test/org/hibernate/test/hql/ASTParserLoadingTest.javamore component type queries10848added[EMAIL PROTECTED]//trunk/Hibernate3/test/org/hibernate/test/lob/SerializableTypeTest.javalob testing10848added[EMAIL PROTECTED]//trunk/Hibernate3/test/org/hibernate/test/lob/LobHolder.javalo

[hibernate-dev] hibernate-mysql-testsuite Build Completed With Testsuite Errors

2006-11-24 Thread qa

View results here -> http://cruisecontrol.jboss.com/cc/buildresults/hibernate-mysql-testsuite?log=log20061124031014
TESTS FAILEDAnt Error Message: /home/cruisecontrol/work/scripts/build-hibernate-db-matrix.xml:127: The following error occurred while executing this line: /home/cruisecontrol/work/scripts/build-hibernate-db-matrix.xml:83: The following error occurred while executing this line: /home/cruisecontrol/work/scripts/build-common-targets.xml:11: Build Successful - Tests completed with errors or failures.Date of build: 11/24/2006 03:10:14Time to build: 34 minutes 29 secondsLast changed: 12/31/2005 20:44:14Last log entry: less noisy




    Unit Tests: (943)    Total Errors and Failures: (50)testComponentQueriesorg.hibernate.test.hql.ASTParserLoadingTesttestCollectionFetchWithDistinctionAndLimitorg.hibernate.test.hql.ASTParserLoadingTesttestTempTableGenerationIsolationorg.hibernate.test.hql.BulkManipulationTesttestBooleanHandlingorg.hibernate.test.hql.BulkManipulationTesttestSimpleInsertorg.hibernate.test.hql.BulkManipulationTesttestSimpleNativeSQLInsertorg.hibernate.test.hql.BulkManipulationTesttestInsertWithManyToOneorg.hibernate.test.hql.BulkManipulationTesttestInsertWithMismatchedTypesorg.hibernate.test.hql.BulkManipulationTesttestInsertIntoSuperclassPropertiesFailsorg.hibernate.test.hql.BulkManipulationTesttestInsertAcrossMappedJoinFailsorg.hibernate.test.hql.BulkManipulationTesttestUpdateWithWhereExistsSubqueryorg.hibernate.test.hql.BulkManipulationTesttestUpdateOnComponentorg.hibernate.test.hql.BulkManipulationTesttestUpdateOnManyToOneorg.hibernate.test.hql.BulkManipulationTesttestUpdateOnImplicitJoinFailsorg.hibernate.test.hql.BulkManipulationTesttestUpdateOnDiscriminatorSubclassorg.hibernate.test.hql.BulkManipulationTesttestUpdateOnAnimalorg.hibernate.test.hql.BulkManipulationTesttestUpdateOnMammalorg.hibernate.test.hql.BulkManipulationTesttestUpdateSetNullUnionSubclassorg.hibernate.test.hql.BulkManipulationTesttestUpdateSetNullOnDiscriminatorSubclassorg.hibernate.test.hql.BulkManipulationTesttestUpdateSetNullOnJoinedSubclassorg.hibernate.test.hql.BulkManipulationTesttestDeleteOnDiscriminatorSubclassorg.hibernate.test.hql.BulkManipulationTesttestDeleteOnJoinedSubclassorg.hibernate.test.hql.BulkManipulationTesttestDeleteOnMappedJoinorg.hibernate.test.hql.BulkManipulationTesttestDeleteUnionSubclassAbstractRootorg.hibernate.test.hql.BulkManipulationTesttestDeleteUnionSubclassConcreteSubclassorg.hibernate.test.hql.BulkManipulationTesttestDeleteUnionSubclassLeafSubclassorg.hibernate.test.hql.BulkManipulationTesttestDeleteWithMetadataWhereFragmentsorg.hibernate.test.hql.BulkManipulationTesttestDeleteRestrictedOnManyToOneorg.hibernate.test.hql.BulkManipulationTesttestScrollingJoinFetchesForwardorg.hibernate.test.hql.ScrollableCollectionFetchingTesttestScrollingJoinFetchesReverseorg.hibernate.test.hql.ScrollableCollectionFetchingTesttestScrollingJoinFetchesPositioningorg.hibernate.test.hql.ScrollableCollectionFetchingTesttestWithClauseFailsWithFetchorg.hibernate.test.hql.WithClauseTesttestWithClauseorg.hibernate.test.hql.WithClauseTesttestInterfaceProxiesorg.hibernate.test.interfaceproxy.InterfaceProxyTesttestQueryorg.hibernate.test.legacy.FooBarTesttestOneToOneGeneratororg.hibernate.test.legacy.FooBarTesttestReachabilityorg.hibernate.test.legacy.FooBarTesttestVersionedCollectionsorg.hibernate.test.legacy.FooBarTesttestReturnPropertyComponentRenameorg.hibernate.test.legacy.SQLLoaderTesttestOneToManyLinkTableorg.hibernate.test.onetomany.OneToManyTesttestManyToManyPropertyReforg.hibernate.test.propertyref.PropertyRefTesttestManualSynchronizationorg.hibernate.test.sql.GeneralTesttestAutoDetectAliasingorg.hibernate.test.sql.GeneralTesttestScalarStoredProcedureorg.hibernate.test.sql.MySQLTesttestParameterHandlingorg.hibernate.test.sql.MySQLTesttestEntityStoredProcedureorg.hibernate.test.sql.MySQLTesttestFiltersWithJoinedSubclassorg.hibernate.test.subclassfilter.JoinedSubclassFilterTesttestUnionSubclassorg.hibernate.test.unionsubclass2.UnionSubclassTesttestFetchInSubqueryFailureExpectedorg.hibernate.test.hql.ASTParserLoadingTesttestJoinFetchPropertyReforg.hibernate.test.propertyref.PropertyRefTest 
 Modifications since last build: (first 50 of 2289)10864modified[EMAIL PROTECTED]//trunk/Hibernate3/src/org/hibernate/impl/SessionFactoryImpl.javaHHH-2259 : jta current session + auto-flush10862modified[EMAIL PROTECTED]//trunk/Hibernate3/src/org/hibernate/impl/SQLQueryImpl.javaHHH-2238 : SQLQuery.executeUpdate() + flush-modes10860modified[EMAIL PROTECTED]//trunk/Hibernate3/src/org/hibernate/util/ExternalSessionFactoryConfig.javaHHH-2246 : mbean + cache-provider-config setting10860modified[EMAIL PROTECTED]//trunk/Hibernate3/src/org/hibernate/jmx/HibernateServiceMBean.javaHHH-2246 : mbean + cache-provider-config setting10857modified[EMAIL PROTECTED]//trunk/Hibernate3/src/org/hibernate/persister/entity/JoinedSubc

Re: [hibernate-dev] Hibernate search(lucene) update question & opinion.

2006-11-24 Thread Emmanuel Bernard

The problem is not solved "automatically" yet. But here is the reason why.
First of all, the elements are properly deleted, and the index file 
reflect that as soon as IndexReader.close() is called (which is done by 
Hibernate Search). However, the files containing the document data are 
not cleaned.
Basically, to physically delete the elements, you need to optimize() 
your index, this operation typically takes more time and doing it for 
every single delete is not appropriate.


I see 4 solutions:
1. let the user access the Directory and call the 
indexWriter.optimize() method. It works today but it sucks.
2. add an FullTextSession.optimize(Class) method, and the application 
is responsible for the method trigger. This is the easy solution but put 
more work on the user. And I'm not happy to push a maintenance API to 
the Session. Esp since this is more of a SessionFactory like API.

2bis. publish this API through JMX
3. optimize every N operations. It is trivial to add a counter per 
DirectoryProvider and trigger the optimization. N should be customizable
4. optimize every N seconds. either by setting a timer in an additional 
thread or wait for the next operation and compare the timestamp


2(bis or not) and 3 are my favorites. It's really 2 or 3 hours of work. 
If someone is interested, ping me.

http://opensource.atlassian.com/projects/hibernate/browse/ANN-495

Jin Yiqing wrote:

Hi,
 
I found the cool new feature of hibernate search in Lucene-user mail 
list by Emmanuel's mail.
 
u guys did a very greate job!  Since i am now working on a system that 
using lucene to implement a search engine, i would like to know some 
more details about Hinbernate Search. 
 
  I have read some of the code in Hinbernate 3.2GA release, the code 
is pretty cool, but  there is one thing i doubt:
 
  For the update operation Hibernate Search used remove & 
update.which refer to Lucene's deleteDocuments method.  This will 
works fine when the operation does not have high frequency and the 
index is new.
  But as i know  the remove operation in lucene only marked a tag 
for the deleted document without actually delete the data ofr index 
files. We know in some systems the data would be updated in a very 
high  frequency(eg. an traffic status query system), then it will not 
take a long time that the index will be filled with lots of expired 
document data,  even if the data update is not as fast as a traffic 
status, i think this problem is still very critical since things we 
stored in databases are always updating.
 
 Is there any way to solve this in Hibernate Search?
 
thanks,

Richie
 



___
hibernate-dev mailing list
hibernate-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev
  

___
hibernate-dev mailing list
hibernate-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev


[hibernate-dev] Hibernate Tools How to Install Plugin?

2006-11-24 Thread Arthur Orange

Ok the page
http://www.hibernate.org/hib_docs/tools/reference/en/html/setup.html

lists such scant docs on how to install hibernate tools that its worthless
really.

I went to tools.hibernate.org and that didn't work either.

Read up myriad of docs and had to traverse back to Eclipse tutorials on how
to install a plugin which is supposed to make development easier.

This has taken all morning :"How to install Hibernate Tools" and I notice I
am not the only one apparently people all the way in Australia are bitten by
the odd desire to make their life easier but often find that it just gets
more difficult (just the installation! for a tool that is supposed to be
"interoperable")

I am using IBM Rational Application Developer 6 with 5000 "fixes" running on
a windows platform. Its based on eclipse so I am hoping that it will work.

A
___
hibernate-dev mailing list
hibernate-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev


Re: [hibernate-dev] Hibernate Tools How to Install Plugin?

2006-11-24 Thread Christian Bauer


On Nov 24, 2006, at 7:43 PM, Arthur Orange wrote:

Ok the page http://www.hibernate.org/hib_docs/tools/reference/en/ 
html/setup.html


lists such scant docs on how to install hibernate tools that its  
worthless really.


I went to tools.hibernate.org and that didn't work either.

Read up myriad of docs and had to traverse back to Eclipse  
tutorials on how to install a plugin which is supposed to make  
development easier.


This has taken all morning :"How to install Hibernate Tools" and I  
notice I am not the only one apparently people all the way in  
Australia are bitten by the odd desire to make their life easier  
but often find that it just gets more difficult (just the  
installation! for a tool that is supposed to be "interoperable")


I am using IBM Rational Application Developer 6 with 5000 "fixes"  
running on a windows platform. Its based on eclipse so I am hoping  
that it will work.



First, if you go to the Hibernate website, you will find a link to  
the right documentation (it's actually the same than the old one you  
discovered through some other channel):


http://www.hibernate.org/hib_docs/tools/reference/en/html/ 
setup.html#d0e23


Second, the requirements clearly say "Eclipse", not "totally broken  
IBM stuff". So please contact your IBM sales guy if their software  
doesn't work.


Third, you want to go to http://forum.hibernate.org.




___
hibernate-dev mailing list
hibernate-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev


Re: [hibernate-dev] Hibernate search(lucene) update question & opinion.

2006-11-24 Thread Mario Ivankovits
Hi Emmanuel!
> 2. add an FullTextSession.optimize(Class) method, and the application
> is responsible for the method trigger. This is the easy solution but
> put more work on the user. And I'm not happy to push a maintenance API
> to the Session. Esp since this is more of a SessionFactory like API.
+1
> 3. optimize every N operations. It is trivial to add a counter per
> DirectoryProvider and trigger the optimization. N should be customizable
+1

I've too written a lucene indexing server, and use those both approaches.
Optimization after - say 1000 operations and trigger an optimization at
3:00 o clock in the morning - works pretty well.

Another idea might be:

5. optimize after N time units (seconds/minutes/hours) idle time. So -
if set to say 3 hours - this might trigger an optimization in the
evening when nobody is bothered.


To gain even more performance with optimization and large indexes: Is it
possible with Hibernate Search to partition the index, so to have
multiple small indexes? You might know if there are deleted documents in
one of the index partition and then optimize only those partitions.


Ciao,
Mario

___
hibernate-dev mailing list
hibernate-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev


Re: [hibernate-dev] Hibernate search(lucene) update question & opinion.

2006-11-24 Thread Emmanuel Bernard
Remember that while you can use the same index for your whole domain 
model, One index per entity is the recommended approach. Do you expect a 
finer grained model? Under which partition strategy?


Mario Ivankovits wrote:


Hi Emmanuel!
> 2. add an FullTextSession.optimize(Class) method, and the application
> is responsible for the method trigger. This is the easy solution but
> put more work on the user. And I'm not happy to push a maintenance API
> to the Session. Esp since this is more of a SessionFactory like API.
+1
> 3. optimize every N operations. It is trivial to add a counter per
> DirectoryProvider and trigger the optimization. N should be customizable
+1

I've too written a lucene indexing server, and use those both approaches.
Optimization after - say 1000 operations and trigger an optimization at
3:00 o clock in the morning - works pretty well.

Another idea might be:

5. optimize after N time units (seconds/minutes/hours) idle time. So -
if set to say 3 hours - this might trigger an optimization in the
evening when nobody is bothered.


To gain even more performance with optimization and large indexes: Is it
possible with Hibernate Search to partition the index, so to have
multiple small indexes? You might know if there are deleted documents in
one of the index partition and then optimize only those partitions.


Ciao,
Mario


___
hibernate-dev mailing list
hibernate-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev


[hibernate-dev] hibernate-hsqldb-testsuite Build Completed With Testsuite Errors

2006-11-24 Thread qa

View results here -> http://cruisecontrol.jboss.com/cc/buildresults/hibernate-hsqldb-testsuite?log=log2006112510
TESTS FAILEDAnt Error Message: /home/cruisecontrol/work/scripts/build-hibernate-db-matrix.xml:92: The following error occurred while executing this line: /home/cruisecontrol/work/scripts/build-hibernate-db-matrix.xml:83: The following error occurred while executing this line: /home/cruisecontrol/work/scripts/build-common-targets.xml:11: Build Successful - Tests completed with errors or failures.Date of build: 11/25/2006 00:00:10Time to build: 9 minutes 9 secondsLast changed: 12/31/2005 20:44:14Last log entry: less noisy




    Unit Tests: (945)    Total Errors and Failures: (5)testReturnPropertyComponentRenameorg.hibernate.test.legacy.SQLLoaderTesttestManyToManyPropertyReforg.hibernate.test.propertyref.PropertyRefTesttestUnionSubclassorg.hibernate.test.unionsubclass2.UnionSubclassTesttestFetchInSubqueryFailureExpectedorg.hibernate.test.hql.ASTParserLoadingTesttestJoinFetchPropertyReforg.hibernate.test.propertyref.PropertyRefTest 
 Modifications since last build: (first 50 of 2289)10864modified[EMAIL PROTECTED]//trunk/Hibernate3/src/org/hibernate/impl/SessionFactoryImpl.javaHHH-2259 : jta current session + auto-flush10862modified[EMAIL PROTECTED]//trunk/Hibernate3/src/org/hibernate/impl/SQLQueryImpl.javaHHH-2238 : SQLQuery.executeUpdate() + flush-modes10860modified[EMAIL PROTECTED]//trunk/Hibernate3/src/org/hibernate/util/ExternalSessionFactoryConfig.javaHHH-2246 : mbean + cache-provider-config setting10860modified[EMAIL PROTECTED]//trunk/Hibernate3/src/org/hibernate/jmx/HibernateServiceMBean.javaHHH-2246 : mbean + cache-provider-config setting10857modified[EMAIL PROTECTED]//trunk/Hibernate3/src/org/hibernate/persister/entity/JoinedSubclassEntityPersister.javaHHH-2242 : optimisitc-locking=none on joined-subclass10857modified[EMAIL PROTECTED]//trunk/Hibernate3/src/org/hibernate/engine/Versioning.javaHHH-2242 : optimisitc-locking=none on joined-subclass10857modified[EMAIL PROTECTED]//trunk/Hibernate3/src/org/hibernate/tuple/entity/EntityMetamodel.javaHHH-2242 : optimisitc-locking=none on joined-subclass10856modified[EMAIL PROTECTED]//trunk/Hibernate3/src/org/hibernate/impl/AbstractQueryImpl.javaHHH-2250 : Query.setEntity() with null entity10853modified[EMAIL PROTECTED]//trunk/Hibernate3/test/org/hibernate/test/AllTests.javaHHH-1851 : add tests to AllTests10852modified[EMAIL PROTECTED]//trunk/Hibernate3/src/org/hibernate/persister/entity/AbstractEntityPersister.javaHHH-1851 : relax special 'id' property handling10852added[EMAIL PROTECTED]//trunk/Hibernate3/test/org/hibernate/test/idprops/LineItem.javaHHH-1851 : relax special 'id' property handling10852added[EMAIL PROTECTED]//trunk/Hibernate3/test/org/hibernate/test/idprops/Person.javaHHH-1851 : relax special 'id' property handling10852modified[EMAIL PROTECTED]//trunk/Hibernate3/src/org/hibernate/persister/entity/AbstractPropertyMapping.javaHHH-1851 : relax special 'id' property handling10852added[EMAIL PROTECTED]//trunk/Hibernate3/test/org/hibernate/test/idprops/IdentifierPropertyReferencesTest.javaHHH-1851 : relax special 'id' property handling10852added[EMAIL PROTECTED]//trunk/Hibernate3/test/org/hibernate/test/idprops/Order.javaHHH-1851 : relax special 'id' property handling10852modified[EMAIL PROTECTED]//trunk/Hibernate3/doc/reference/en/modules/query_hql.xmlHHH-1851 : relax special 'id' property handling10852modified[EMAIL PROTECTED]//trunk/Hibernate3/src/org/hibernate/hql/ast/tree/DotNode.javaHHH-1851 : relax special 'id' property handling10852added[EMAIL PROTECTED]//trunk/Hibernate3/test/org/hibernate/test/idprops/Mapping.hbm.xmlHHH-1851 : relax special 'id' property handling10852modified[EMAIL PROTECTED]//trunk/Hibernate3/test/org/hibernate/test/legacy/CustomPersister.javaHHH-1851 : relax special 'id' property handling10852modified[EMAIL PROTECTED]//trunk/Hibernate3/src/org/hibernate/hql/ast/tree/FromElement.javaHHH-1851 : relax special 'id' property handling10852added[EMAIL PROTECTED]//trunk/Hibernate3/test/org/hibernate/test/idpropsHHH-1851 : relax special 'id' property handling10852added[EMAIL PROTECTED]//trunk/Hibernate3/test/org/hibernate/test/idprops/LineItemPK.javaHHH-1851 : relax special 'id' property handling10852modified[EMAIL PROTECTED]//trunk/Hibernate3/src/org/hibernate/persister/entity/EntityPersister.javaHHH-1851 : relax special 'id' property handling10852modified[EMAIL PROTECTED]//trunk/Hibernate3/src/org/hibernate/tuple/entity/EntityMetamodel.javaHHH-1851 : relax special 'id' property handling10849modified[EMAIL PROTECTED]//trunk/Hibernate3/test/org/hibernate/test/hql/ASTParserLoadingTest.javamore component type queries10848added[EMAIL PROTECTED]//trunk/Hibernate3/test/org/hibernate/test/lob/SerializableTypeTest.javalob testing10848added[EMAIL PROTECTED]//trunk/Hibernate3/test/org/hibernate/test/lob/LobHolder.javalob

[hibernate-dev] hibernate-mysql-testsuite Build Completed With Testsuite Errors

2006-11-24 Thread qa

View results here -> http://cruisecontrol.jboss.com/cc/buildresults/hibernate-mysql-testsuite?log=log20061125001012
TESTS FAILEDAnt Error Message: /home/cruisecontrol/work/scripts/build-hibernate-db-matrix.xml:127: The following error occurred while executing this line: /home/cruisecontrol/work/scripts/build-hibernate-db-matrix.xml:83: The following error occurred while executing this line: /home/cruisecontrol/work/scripts/build-common-targets.xml:11: Build Successful - Tests completed with errors or failures.Date of build: 11/25/2006 00:10:12Time to build: 35 minutes 3 secondsLast changed: 12/31/2005 20:44:14Last log entry: less noisy




    Unit Tests: (943)    Total Errors and Failures: (50)testComponentQueriesorg.hibernate.test.hql.ASTParserLoadingTesttestCollectionFetchWithDistinctionAndLimitorg.hibernate.test.hql.ASTParserLoadingTesttestTempTableGenerationIsolationorg.hibernate.test.hql.BulkManipulationTesttestBooleanHandlingorg.hibernate.test.hql.BulkManipulationTesttestSimpleInsertorg.hibernate.test.hql.BulkManipulationTesttestSimpleNativeSQLInsertorg.hibernate.test.hql.BulkManipulationTesttestInsertWithManyToOneorg.hibernate.test.hql.BulkManipulationTesttestInsertWithMismatchedTypesorg.hibernate.test.hql.BulkManipulationTesttestInsertIntoSuperclassPropertiesFailsorg.hibernate.test.hql.BulkManipulationTesttestInsertAcrossMappedJoinFailsorg.hibernate.test.hql.BulkManipulationTesttestUpdateWithWhereExistsSubqueryorg.hibernate.test.hql.BulkManipulationTesttestUpdateOnComponentorg.hibernate.test.hql.BulkManipulationTesttestUpdateOnManyToOneorg.hibernate.test.hql.BulkManipulationTesttestUpdateOnImplicitJoinFailsorg.hibernate.test.hql.BulkManipulationTesttestUpdateOnDiscriminatorSubclassorg.hibernate.test.hql.BulkManipulationTesttestUpdateOnAnimalorg.hibernate.test.hql.BulkManipulationTesttestUpdateOnMammalorg.hibernate.test.hql.BulkManipulationTesttestUpdateSetNullUnionSubclassorg.hibernate.test.hql.BulkManipulationTesttestUpdateSetNullOnDiscriminatorSubclassorg.hibernate.test.hql.BulkManipulationTesttestUpdateSetNullOnJoinedSubclassorg.hibernate.test.hql.BulkManipulationTesttestDeleteOnDiscriminatorSubclassorg.hibernate.test.hql.BulkManipulationTesttestDeleteOnJoinedSubclassorg.hibernate.test.hql.BulkManipulationTesttestDeleteOnMappedJoinorg.hibernate.test.hql.BulkManipulationTesttestDeleteUnionSubclassAbstractRootorg.hibernate.test.hql.BulkManipulationTesttestDeleteUnionSubclassConcreteSubclassorg.hibernate.test.hql.BulkManipulationTesttestDeleteUnionSubclassLeafSubclassorg.hibernate.test.hql.BulkManipulationTesttestDeleteWithMetadataWhereFragmentsorg.hibernate.test.hql.BulkManipulationTesttestDeleteRestrictedOnManyToOneorg.hibernate.test.hql.BulkManipulationTesttestScrollingJoinFetchesForwardorg.hibernate.test.hql.ScrollableCollectionFetchingTesttestScrollingJoinFetchesReverseorg.hibernate.test.hql.ScrollableCollectionFetchingTesttestScrollingJoinFetchesPositioningorg.hibernate.test.hql.ScrollableCollectionFetchingTesttestWithClauseFailsWithFetchorg.hibernate.test.hql.WithClauseTesttestWithClauseorg.hibernate.test.hql.WithClauseTesttestInterfaceProxiesorg.hibernate.test.interfaceproxy.InterfaceProxyTesttestQueryorg.hibernate.test.legacy.FooBarTesttestOneToOneGeneratororg.hibernate.test.legacy.FooBarTesttestReachabilityorg.hibernate.test.legacy.FooBarTesttestVersionedCollectionsorg.hibernate.test.legacy.FooBarTesttestReturnPropertyComponentRenameorg.hibernate.test.legacy.SQLLoaderTesttestOneToManyLinkTableorg.hibernate.test.onetomany.OneToManyTesttestManyToManyPropertyReforg.hibernate.test.propertyref.PropertyRefTesttestManualSynchronizationorg.hibernate.test.sql.GeneralTesttestAutoDetectAliasingorg.hibernate.test.sql.GeneralTesttestScalarStoredProcedureorg.hibernate.test.sql.MySQLTesttestParameterHandlingorg.hibernate.test.sql.MySQLTesttestEntityStoredProcedureorg.hibernate.test.sql.MySQLTesttestFiltersWithJoinedSubclassorg.hibernate.test.subclassfilter.JoinedSubclassFilterTesttestUnionSubclassorg.hibernate.test.unionsubclass2.UnionSubclassTesttestFetchInSubqueryFailureExpectedorg.hibernate.test.hql.ASTParserLoadingTesttestJoinFetchPropertyReforg.hibernate.test.propertyref.PropertyRefTest 
 Modifications since last build: (first 50 of 2289)10864modified[EMAIL PROTECTED]//trunk/Hibernate3/src/org/hibernate/impl/SessionFactoryImpl.javaHHH-2259 : jta current session + auto-flush10862modified[EMAIL PROTECTED]//trunk/Hibernate3/src/org/hibernate/impl/SQLQueryImpl.javaHHH-2238 : SQLQuery.executeUpdate() + flush-modes10860modified[EMAIL PROTECTED]//trunk/Hibernate3/src/org/hibernate/util/ExternalSessionFactoryConfig.javaHHH-2246 : mbean + cache-provider-config setting10860modified[EMAIL PROTECTED]//trunk/Hibernate3/src/org/hibernate/jmx/HibernateServiceMBean.javaHHH-2246 : mbean + cache-provider-config setting10857modified[EMAIL PROTECTED]//trunk/Hibernate3/src/org/hibernate/persister/entity/JoinedSubcl

Re: [hibernate-dev] Hibernate search(lucene) update question & opinion.

2006-11-24 Thread Mario Ivankovits
Hi Emmanuel!
> Remember that while you can use the same index for your whole domain
> model, One index per entity is the recommended approach. Do you expect
> a finer grained model? Under which partition strategy?
First, I hadn't had the time till now to have a look at Hibernate
Search, so sorry if this is some sort of "newbie question" 

Yes, I thought of a finer grained model, based on the content of the entity.
Say you have a property named "type" in your entity, based on this type
one might be able to create multiple smaller indexes. Very similar to
what a database can do with partitioned tables.
Now, to avoid any complex annotations we can hand the work to determine
the partition to the DirectoryProvider (which I assume a user has to
provide)

Maybe by simply add the entity as argument to the
directoryProvider.getDirectory() method so the provider could return a
directory based on some sort of complex logic based on the entity.
Then, we need an addition like directoryProvider.getDirectories() and
create a MultiSearcher based on these directories.

Now we can go even further (and I have done this in our Lucene Server).
By caching the version of each of the directories, you are able to
reopen only those indexes which have changed. So if the index changed,
you do not have to open the whole index (which can be really large once
you indexed plenty of text data - I've indexes with 1GB in size).

I hope its clear what I wanted to say, else I can reword  or even
better ... can come up with a patch :-)

Ciao,
Mario

___
hibernate-dev mailing list
hibernate-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev