Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

changeitem Table performance issue

Guillaume Goupil
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 23, 2021

Hello,

 

On my JIRA instance (v5.2.11) I have some performance issues.

DBAs detect that this SQL request is slow :

@P0 bigint

SELECT CG.ID, CG.issueid, CG.AUTHOR, CG.CREATED, CI.ID, CI.groupid, CI.FIELDTYPE, CI.FIELD, CI.OLDVALUE, CI.OLDSTRING, CI.NEWVALUE, CI.NEWSTRING FROM dbo.changegroup CG INNER JOIN dbo.changeitem CI ON CG.ID = CI.groupid WHERE CG.issueid= @P0  ORDER BY CG.CREATED ASC, CI.ID ASC

 

Because of 12million of line in table "changeitem".

 

Is it possible to archived or purge this table ?

Or

Is it possible to partitioning with statistical incrementalism ?

 

Thank you,

Guillaume

1 answer

1 accepted

0 votes
Answer accepted
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 23, 2021

Removing lines from this tables destroys some of your issue data, so that should not be done.  (Plus you'll need to be doing related deletes, the table has relationships with a number of other things and you need to be really careful not to end up with an unusable Jira due to data corruption)

Partitioning is not supported by Jira, if you can do it at a database level and have no apparent effect on the SQL it needs to run, that's fine, but the application won't do it.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
5.2.11
TAGS
AUG Leaders

Atlassian Community Events