Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,552,987
Community Members
 
Community Events
184
Community Groups

Best techniques to clean up a big Jira instance

Ok so over time we created lots of custom fields, some where deleted, some got a context added to make issues lighter,

however one thing I noticed, and that is well known, after adding a context to a field, the issue that should not have a value anymore are still present in the database.

in one case I have a project with 60k issues but 15 fields are only used on 30k issues,

how do I cleanup all the extra unusable/unwanted rows.

my main concern is that with the number of fields (around 900) the queries on the customfieldvalue table have become slower and during peak hours it is using a lot of our database processing.

I cannot find anything related to cleaning up tables or having jira do it either.

I assume a reindex is not gonna do anything as it is related to rebuilding the lucene index from the database.

Could I iterate with groovy on the issues and just do a issue save without modifying anything to force the database to clean?

2 comments

I am asking this one because customfieldvalue is the first table that is going to show in slow queries during crunch times, meaning if I can clean it, it will help the instance overall

Matt Doar__ LinkedIn
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Mar 06, 2018

Generally its not the amount of data in a Jira database that causes performance problems. More important is the size of the Lucene indexes, particularly the main one (issues). A full reindex should reduce the size of your Lucene issues index if you have used custom field contexts to change the fields in each issue.

I don't recommend deleting rows from customfieldvalue without a full understanding of how other tables use it

Matt Doar__ LinkedIn
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Mar 06, 2018

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events