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

Sanne Grinovero sanne at hibernate.org
Thu Mar 15 13:04:12 EDT 2012


On 15 March 2012 16:58, Guillaume SCHEIBEL <guillaume.scheibel at gmail.com> wrote:
> Ok, I was affraid of having a lot more data into the DB.
> The stored data type  will be just simple object or some embedded object
> could be present too (to know if I have to go all over the field map to find
> relationnal data) ?

I think that right now you're the only person knowing how OGM is
storing that in MongoDB :)
If in doubt, please add a test.

Sanne

>
>
> Guillaume
>
> 2012/3/15 Emmanuel Bernard <emmanuel at hibernate.org>
>>
>>
>> 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