Hi all,
after adding the Authorization Join and reducing the where clause, we have fixed PostgreSQL performance issues and also the Oracle Performance issues.
Following is a list of databases and the historic authorization execution time:
MariaDB: 12,57 sec
MySQL: 14,268 sec
MsSQL: ? (Error lipphardt)
Oracle 12: 16,216 sec
PostgreSQL 93: 15,506 sec
H2: 25,051 sec
Oracle 10: ? (Error lipphardt)
DB2 105: 15,265 sec
DB2 97: 2,992.002 sec
For more details see this table
lipphardt since we have so different executions times, also on different version of databases, i think it will be interesting to execute the performance tests on all databases like the unit tests. Also we have to increase the timeout value since oracle 12 needs 20 mins for the creation of the test data, if the timeout value is below 20 min a timeout error is thrown.
P.S.: It seems that on DB2 9.7 the HistoricActivityInstanceQuery is the Problem not the HistoricProcessInstanceQuery. See this report.
Best regards,
Chris
christopher.zell We can have a quick chat about this on tuesday: basically it would mean that we use the join based authorization check for history as well