Hello,
when the method GigaSpace.count(SQLQuery) is invoked in a LRU space with HibernateSpaceDataSource, it counts only matching items already in space memory, but it does not attempt to load items to be counted from the underlying database. The method GIgaSpace.readMultiple(SQLQuery) works as expected, it loads data into the space from the underlying database.
The method GigaSpace.count(SQLQuery, CountModifiers) allows to specify additional modifiers. One of the modifiers is MEMORY_ONLY which suggests that if this modifier is not used, the method count() should search not only in memory of a LRU space, but also in the underlying database. I have also tried to invoke the method GigaSpace.count() with CountModifiers.NONE, but it still counts only objects which are already in memory, without attempting to access the underlying database.
Do you agree that this is a bug? If this is not a bug, what sense does it make to have a modifier CountModifier.MEMORY_ONLY if count is always memory only?
↧