It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Performance issue with JIRA 6.2.5

Adolfo Guzman Jan 20, 2015

We currently have a valid license with JQL Tricks for Live Nation Entertainment.  We are finding that many of our queries take an extremely long time when using JQL Tricks in our JQL.

Is this because of this issue?  https://jira.atlassian.com/browse/JRA-36368

 

We have over 6,000 users using our JIRA instance where a handful of them are creating many filter queries. Is there a standard document your team can suggest in writing queries I can share with my users? Some of their queries take an extremely long time to return results.

Here is one of them:

project = MFOL AND (cf[10863] = Bergman OR cf[10863] = "All Teams" OR issue in parent("cf[10863] = Bergman OR cf[10863] = 'All Teams'")) ORDER BY Rank ASC

Can you share query creating best practices this can significantly help the JIRA experience within our global userbase.

 

5 answers

0 votes
Jobin Kuruvilla [Go2Group] Community Leader Jan 21, 2015

You will find the usage guide here but that is more of syntax and not best practices. The general rule is to keep the result set small and that will improve the performance.

For example, if you have 100K issues returning from the "parent" function, it will take more time than when it returns 1000 issues. In the above query, looks like you are expecting to see only issues from MFOL project and so you can include that criteria inside the parent function. Updated query will look like:

project = MFOL AND (cf[10863] = Bergman OR cf[10863] = "All Teams" OR issue in parent("(cf[10863] = Bergman OR cf[10863] = 'All Teams') AND project = MFOL")) ORDER BY Rank ASC

That aside, JQL Tricks has a couple of configurations you can set globally.

  1. You can restrict the functions to certain users.
  2. You can restrict the functions to selected projects

Both limits the functionality and so not sure if that is an option. If not, stick to writing limiting queries and vote on https://jira.atlassian.com/browse/JRA-39375 wink

0 votes
Adolfo Guzman Jan 30, 2015

Hi Jobin,

Thank you for the information.  We want to upgrade our instance from JIRA 6.2.5 but need to know which version of JIRA we should upgrade to.  Is JIRA-36368 issue resolved in the version of JIRA 6.3.14 which is the latest?

Regards,

Adolfo

Jobin Kuruvilla [Go2Group] Community Leader Jan 30, 2015

https://jira.atlassian.com/browse/JRA-36368 is resolved in 6.3.4+. JRA-39375 is another one I would keenly watch!

0 votes
Adolfo Guzman Feb 04, 2015

Jobin,

 

Just a quick update.....thoughts?  There is a performance improvement but not as much as we expected.

 

We have upgraded to JIRA version 6.3.14 in our DEV instance and compared the following query which returns 4115 issues:

 

project = MFOL AND (cf[10863] = Bergman OR cf[10863] = "All Teams" OR issue in parent("cf[10863] = Bergman OR cf[10863] = 'All Teams'")) ORDER BY Rank ASC

 

DEV /JIRA = 14 secs.  (JIRA version 6.2.5)

DEV /JIRA3 = 9 secs   (JIRA version 6.3.14)

PROD /JIRA = 38 secs.  (JIRA version 6.2.5)

 

Your modified query:  project = MFOL AND (cf[10863] = Bergman OR cf[10863] = "All Teams" OR issue in parent("(cf[10863] = Bergman OR cf[10863] = 'All Teams') AND project = MFOL")) ORDER BY Rank ASC

 

DEV /JIRA = 18 secs.  (JIRA version 6.2.5)

DEV /JIRA3 = 8 secs   (JIRA version 6.3.14)

PROD /JIRA = 35 secs.  (JIRA version 6.2.5)

 

Our prod instance is on a bare metal server and DEV on a VM.  This query was run during the evening when less users on JIRA.

 

-Adolfo

Jobin Kuruvilla [Go2Group] Community Leader Feb 04, 2015

I have seen better numbers but that is when the queries were taking over a minute. Having said that, the biggest improvement will only come when JRA-39375 is implemented. I am waiting for that fix too.

0 votes
Adolfo Guzman Feb 10, 2015

Jobin,

This query returns a small set of issues but takes an extremely long time.  How would you optimize?  There are many JIRA users writing queries like this which takes a toll on our JIRA instance.

project = "Win Team SA" AND (status in (Open, "In Progress", Reopened, Scheduled, Blocked, Pending) OR status in (Resolved, Closed, Verified, Confirmed) AND updated >= startOfWeek(-1d)) OR Assignee = "Ege.Test" AND (status in (Open, "In Progress", Reopened, Scheduled, Blocked, Pending) OR status in (Resolved, Closed, Verified, Confirmed) AND updated >= startOfWeek(-1d)) ORDER BY Rank ASC

-Adolfo

Jobin Kuruvilla [Go2Group] Community Leader Feb 11, 2015

This is an example where you do not have any plugin functions. It is not the number of issues returned in the end. The key is to reduce the number of issues returned for each clause. What are you trying to do in this query?

0 votes
Adolfo Guzman Feb 11, 2015

It looks like they are trying to consolidate a few queries into one.  This is a filter for an Agile Kanban board.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Marketplace Apps & Integrations

Webinar invitation: Generate custom Jira Cloud PDF reports and exports

Jira may be a staple part of your workday, but your colleagues, customers, business partners or an auditor might need information presented in a different format, that is easy to access and read. And...

64 views 0 1
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you