I need to collect some statistics on my objects in a data warehouse.
As an example, I need to know how many objects I have, how many objects with some properties set for specific values, etc. In a regular relational DBMS, I can use
SELECT COUNT(*) ... WHERE property=<some value>
or
SELECT MAX(*), ... GROUP BY property
etc .. But here I do not see any of these structures.
In addition, I cannot load all the objects in memory (for example, using pm.getExtent (MyCall.class, false)), because I have too many objects (more than 100k in details).
Do you know any trick to achieve my goal?
source share