History entries can contribute to slow KB performance, so if you're troubleshooting performance issues, consider checking the history size. If you find the size is a contributing factor, you can use Delete Actions to delete history entries as needed.
To prevent excessive history entry buildup in the future, consider:
For more information about managing history entries, see History Fields and Rules.
To easily see the history size for a KB:
For an MS SQL server, follow these steps to check the history size for a table:
select h.dbname from swtable h, swtable t where t.dbname='table_name' and t.historytableid=h.swtableid
select count(*) from history_table
sp_spaceused history_table
If your KB is hosted by , reach out to Support or your Implementation specialist to have them query history table size on the server.
personnel can query history table size if they have access to the server command line and the appropriate server key. At the command line, run: This query returns the top 20 largest history tables on the server, for all KBs on the server. From there, you can run additional queries to find the corresponding KB names, number of records, top offending records for a given history table, and more. Some of the tables might be recognizable by name. You can also query the top five largest non-history tables in the database and a summary of activities. Download this script and run it on the command line on the server as follows: |
Related articles |