[
http://jira.jboss.com/jira/browse/JBPM-1217?page=all ]
Thomas Diesler moved PVM-8 to JBPM-1217:
----------------------------------------
Project: JBoss jBPM (was: The Process Virtual Machine)
Key: JBPM-1217 (was: PVM-8)
Component/s: PVM
(was: pvm)
check collections if they need a presence boolean
-------------------------------------------------
Key: JBPM-1217
URL:
http://jira.jboss.com/jira/browse/JBPM-1217
Project: JBoss jBPM
Issue Type: Task
Components: PVM
Reporter: Tom Baeyens
If in the code you need to know if there are elements in a collection, this will result
into an extra query for the entities. If in most cases, the collection is empty, it
might be an optimization to add a boolean pressence indicator next to the collection. The
class could maintain that boolean to indicate if elements are available in the collection.
That way, the extra query is saved if in the code you only need to do a
collection-presence check.
For sure this is useful for the ProcessChanges. But probably for a lot of the other
collections as well.
This shouldn't be applied blindfolded. Each case should be evaluated in terms of the
number of times the presence check is executed in the code.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira