Using Bob Swift Cache with Run Self-Service Reports

Hi,

We use Bob Swift's Run extensively and we are trying to now implement the Cache plugin to reduce database load and db connection issues.

I have tried embedding the sql-query macro inside the Cache macro using a dummy query that takes about 30 seconds to run. The assumption is that after the first run, the table will render instantly upon refresh. But it is taking the full 30s every time.

Interestingly, I have the showDate set to True, and the date of the render at the top will stay unchanged, yet the query still seems to still take the full amount of time to run on every page load. Is there something I am missing here with configurations or setup?

Here is the code on the Confluence page (we have 130k JIRA issues and 437 custom fields so the SQL here takes about 30 seconds)

{cache:showDate=true|index=true}

{sql-query:dataSource=jiraDS|columnLabel=true}

SELECT COUNT(j.id)

FROM jiraissue AS j 
LEFT JOIN customfieldvalue AS c ON c.issue = j.id
LEFT JOIN customfieldoption AS o ON o.id = c.stringvalue

;

{sql}

{cache}

Thanks,

Kevin Tracy

1 answer

This widget could not be displayed.

The query should only be run if the date (from showDate) changes. What version of Confluence? Make sure you are not on Confluence 5.9.5 or 5.9.6 - see Advisory on Confluence 5.9.5 and 5.9.6.

Thank you - we are indeed on 5.9.5. I will see if we can move to 5.9.7

Good to know. Thanks.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Monday in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

375 views 3 6
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you