[hibernate-dev] OGM-123 Support MongoDB as datastore - Unit tests

Emmanuel Bernard emmanuel at hibernate.org
Thu Mar 15 12:41:57 EDT 2012


On 15 mars 2012, at 17:04, Guillaume SCHEIBEL wrote:

> TestableGridDialect.associationCacheSize is killing me !
> Because it's not possible to perform a query without knowing the field name. So I can forget about "I want to know the amount of document which contain a field (except '_id') whose type is ObjectID"
> 
> The same query with "contain a field named 'myField' ..." works.
> 
> I could probable iterator over all collections and all documents but it definitely bursts the tests performances.

Does it? Surely we don't have much than 10 elements in these collections for a given test.



More information about the hibernate-dev mailing list