
Citrix is not responsible for and does not endorse or accept any responsibility for the contents or your use of these third party Web sites. Citrix is providing these links to you only as a convenience, and the inclusion of any link does not imply endorsement by Citrix of the linked Web site. It is your responsibility to take precautions to ensure that whatever Web site you use is free of viruses or other harmful items.
Running the below Database Maintenance tasks to Rebuild and reorganize the indexes and Update statistics in order to improve SQL query performance.
1. Update stats by using below SQL query
Exec sp_updatestats
2. Create index maintenance plan as below
• Reorganize indexes – Every Midnight
• Rebuild Indexes -Every Weekend
Monitor Database consolidation task was timing out due to poor SQL query performance.
Citrix Director 7.X: Average Logon Duration Not Displayed In Graph On Director Dashboard As Well As Logon Performance graphs under Trends
Note: Database Consolidation tasks are responsible for adding entries in Summary Tables. Also, all the results for Grooming, Consolidation Reaping Stored procedures/tasks are recorded in MonitorData.Tasklog Table.
Always take a SQL DB backup before making any changes to the SQL database.
Please refer to “Index Maintenance” section in article https://docs.citrix.com/en-us/advanced-concepts/implementation-guides/database-sizing-guidance-for-xendesktop-7-6.html
Re-organize and Rebuild Indexes
https://learn.microsoft.com/en-us/sql/relational-databases/indexes/reorganize-and-rebuild-indexes?view=sql-server-2017
Update statistics
https://docs.microsoft.com/en-us/sql/t-sql/statements/update-statistics-transact-sql?view=sql-server-2017