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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Good to know. Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.