I removed cascading for the parent field of an execution.
With cascading, when a child execution is finished and is removed from it's parent execution, the child execution is removed from the db, and this is cascaded to the parent execution, which is in its turn removed from the db.
With this modification, Bonita now runs with the trunk revision of the pvm. Can the current pvm be used for our extensions ? We're planning to release a milestone next week. Will there be some modification in the pvm before the end of next week ?
i plan to do a release a first alpha soon. without big unexpected troubles it should be available before tuesday next week. (friday or monday)
After some load tests on Oracle, we found there was a deadlock issue (and transactions are aborted).
The problem is with foreign keys: if a there is no index on a foreign key, each lock on an entry locks the whole table referenced by the FK.
If there is an index on the foreign key, only the impacted row is locked.
One way to solve this deadlock problem is to add index to foreign key columns.
Have you met this kind of issue ? Do you know a better solution ?
adding those indexes is a good idea. i vaguely recall this specific issue. but i do recall clearly that adding indexes in the hibernate mappings was something that improved jbpm 3 a lot.
i'm not sure to what extend it's good practice that we just add indexes everywhere. it would take some DBA skills + a bit of knowledge on how our code reads and writes the db to know which indexes makes sense and which only generate overhead.