0 Replies Latest reply on Feb 20, 2003 10:37 AM by Thomas Louis

    Cache negative query-results

    Thomas Louis Newbie


      could I configure JBoss CMP that it also caches (rembers) query-results that where empty?

      I've got hundreds of same query in one transaction that always looks for the same entity and does not found anything (i know, that's no good design, but it's a generic component).
      Even so I switched the commit-option in standardjboss.xml from "B" to "A" JBoss send a SELECT-query to the database for each call ti "findByKey(String key)" and always it gets back an empty result.

      It seem to me, that JBoss only caches results, that where found and not the fact, that one result is empty.

      Is this right?

      Is there a solution?