-
Bug
-
Resolution: Fixed
-
High (View bug fix roadmap)
-
6.4.5, 6.6.0
-
None
-
Linux with Oracle DB
-
6.04
-
Trying to install JAG for the first time or updating from versions previous to 6.4 where LexoRank was introduced makes Indexing take 11hs or more.
There are 2 problems here:
1) https://jira.atlassian.com/browse/GHS-11143
This issue is impacting heavily over the speed of indexing and must be fixed.
2) This ticket: https://jdog.jira-dev.com/browse/SW-432 introduce a heavy bug over Oracle. We should not do NSL_SORT over an index column cause it make the index useless and asks for a full table scan.
I removed this part of the code in com.atlassian.greenhopper.manager.lexorank.SqlExplicitSortLanguageFunction:
public String toSql(DatabaseType dbType) { /* if(dbType.getFamily().equals(DatabaseFamily.ORACLE)) { StringBuilder sql = new StringBuilder("NLSSORT(") .append(columnName) .append(", 'NLS_SORT = ").append(sortLanguage.getProperty(DatabaseFamily.ORACLE)) .append("')"); return sql.toString(); } else { */ // just return the column name return columnName; // } }
And that also improved the performance.
We should revert all the code about that ticket and document and advice customers which NSL_SORT we want in the db and not hardcoding what we would expect.
We need to talk to acourtis if we can configure the index or the column to be created with the necessary configuration from scratch.
Attached is the patch that improve the performance
You can see here :
That its taking 90% of the JDBC calls.
While after the patch the same is taking :
what a normal query should.
We need to find a way to fix the search for Oracle
For Oracle DB we should have a way to change the DB schema parameter or changing the index capability of AO.
If not we should document or communicate to our Oracle users that this is going to rely on their configuration.
- is blocked by
-
JSWSERVER-11169 Fixing NLS_SORT for Jira Agile queries
-
- Closed
-
- is related to
-
JSWSERVER-11178 Unable to rank with any database collation that does not order all alphanumeric characters the same as ASCII
-
- Closed
-
- mentioned in
-
Page Failed to load
-
Page Failed to load
-
Page Failed to load
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
- was cloned as
-
SW-746 Loading...
This issue should now be resolved in JIRA Agile 6.6.13. What we have done to fix this is to put in place additional checks to figure out what collation is currently being used by the underlying database. If those checks tell us that the collation is non-standard, we apply additional sorting functions to our SQL queries when performing rank operations, to ensure that our ranking algorithm still performs as expected.
In this situation however, performance will be impacted, as applying these additional sorting functions slows down the operation of the database. There is also a message output in the logs when we detect this case:
Regards,
JIRA Agile team