What is DocumentId in ReportInstance table
Hi Support,
Can you explain what the DocumentId column is used for?
As a test, I've run/edited different reports and always found DocumentId to be equal to zero. What are the different use-cases that would make DocumentId a different number other than zero?
Also, I have set 'Version History' to 'Current Version Only' for the Incident Management Content Folder, but DB entries where DocumentId = 0 in ReportInstance are still being created whenever related reports are being run. Copying, editing and then publishing incident management reports do not create any records in the ReportInstance table, however. It only happens when reports are run.
While I am aware that the table can be maintained by manually deleting those entries, is there a way to automatically maintain the ReportInstances table?
Finally, how should I go about deleting over 65 million records from the ReportInstance table efficiently? The concern is the SQL query might take a long time. Is there a more efficient way of maintaining this table Eg. By Date Range?
Hi Nick,
Thanks for reaching out to support with your question.
The only reference to the DocumentId column I could find was in relation to license installation -
https://wiki.yellowfinbi.com/display/USER71/Report+Audit+and+Tracking
You can keep help maintain the ReportInstance automatically by disabling Version History, or by setting Max age on your content folders -
https://wiki.yellowfinbi.com/display/user80/Content+Folders
Here is info on manually maintaining the ReportInstance table -
https://community.yellowfinbi.com/knowledge-base/article/why-is-my-yellowfin-database-so-large-and-what-can-i-do-about-it
https://community.yellowfinbi.com/topic/what-query-can-i-use-to-manually-clear-cached-reports-from-the-document-data-table
note - When running any queries directly against the Yellowfin Configuration Database it's possible to cause irrevocable data loss. This process isn't directly supported nor recommended unless otherwise advised to do so. Before running any queries against your Yellowfin Configuration Database, please make sure you have full, up-to-date backups of both your Yellowfin Configuration Database and your Yellowfin Installation folder. This way, if something goes wrong you can revert back to your current state.
I may be able to find out more about DocumentId when our Australian counterparts are online. Does this help answer your questions in the meantime?
Thanks,
Eric
Hi Nick,
Thanks for reaching out to support with your question.
The only reference to the DocumentId column I could find was in relation to license installation -
https://wiki.yellowfinbi.com/display/USER71/Report+Audit+and+Tracking
You can keep help maintain the ReportInstance automatically by disabling Version History, or by setting Max age on your content folders -
https://wiki.yellowfinbi.com/display/user80/Content+Folders
Here is info on manually maintaining the ReportInstance table -
https://community.yellowfinbi.com/knowledge-base/article/why-is-my-yellowfin-database-so-large-and-what-can-i-do-about-it
https://community.yellowfinbi.com/topic/what-query-can-i-use-to-manually-clear-cached-reports-from-the-document-data-table
note - When running any queries directly against the Yellowfin Configuration Database it's possible to cause irrevocable data loss. This process isn't directly supported nor recommended unless otherwise advised to do so. Before running any queries against your Yellowfin Configuration Database, please make sure you have full, up-to-date backups of both your Yellowfin Configuration Database and your Yellowfin Installation folder. This way, if something goes wrong you can revert back to your current state.
I may be able to find out more about DocumentId when our Australian counterparts are online. Does this help answer your questions in the meantime?
Thanks,
Eric
Hi Nick,
Was able to get some more info, DocumentId's are generated when creating snapshots and creating automated insights:
Does this help clarify things for you?
Thanks,
Eric
Hi Nick,
Was able to get some more info, DocumentId's are generated when creating snapshots and creating automated insights:
Does this help clarify things for you?
Thanks,
Eric
Hi Nick,
Just wanted to check in to see if there's anything else you needed here?
Thanks,
Eric
Hi Nick,
Just wanted to check in to see if there's anything else you needed here?
Thanks,
Eric
Hi Nick,
I'm going to go ahead and mark this as Answered due to inactivity. Feel welcome to re-open with a reply.
Best,
Eric
Hi Nick,
I'm going to go ahead and mark this as Answered due to inactivity. Feel welcome to re-open with a reply.
Best,
Eric
Replies have been locked on this page!