I found a solution for this, so will share.
1. If you turn on debug log here, you can test and find the logger that interests you..
Default logging is for WARN and higher
log4j.rootLogger=DEBUG, file
In this case, that is repository.service.internal.rdb.TransactionalCache because it outputs the query UUID when it gets run:
2017-04-05 15:20:58,226 [ccm: AsynchronousTaskRunner-0 @@ 15:20] DEBUG repository.service.internal.rdb.TransactionalCache etc.. etc.. runSavedQuery&id=_lye3wBjWEeeml6c6oIH6CA
2. Then you can turn off general DEBUG, reload the log settings:
Default logging is for WARN and higher
log4j.rootLogger=WARN, file
https://<servername>:9443/ccm/admin?internal=true#action=com.ibm.team.repository.admin.reloadLoggingSettings
3. Turn on repodebug service in CCM advanced properties (or JTS if required)
--> https://<servername>:9443/ccm/admin?internal=true#action=com.ibm.team.repository.admin.configureAdvanced
--> set com.ibm.team.repository.debug.DebugService to true
4. Go to https://<servername>:9443/ccm/repodebug/log/loggers and find your logger and click the link:
In this case "com.ibm.team.repository.service.internal.rdb.TransactionalCache".
5. Click EDITLEVEL and set to DEBUG
6. When done, go back and change the EDITLEVEL back to WARN or just Reload Log Settings again.
Comments
Note: We are using RTC 6.0.1 with WAS as application server.
It's similar to asking when was the last time a work item was "viewed", which can be hard to get without some heaving tracing. IMO the data gathering and analyzing may not even be worthwhile in the end. Before getting into the technical details, let's clarify one thing first, why is there a concern about the number of work item queries to start with? Are we looking at public queries, shared queries or private queries?
Public and shared queries. If there are too many of these it causes confusion. We just want to see what options exist. If the options are all too onerous we will fall back on the IHS access log.
Donald, do you have any ideas for this?