When a count query is run in EJB QL, will JBoss count in cache then in DB or will every EJB the count query referes to be loaded into cache then counted?
a finder or select always goes to the database (except for findByPK)