Schedule database maintenance and configure disk usage, CPU, and memory thresholds to optimize maintenance and performance of the Application.
Database Maintenance ScheduleThe query optimizer uses table statistics to create query plans. Therefore, the statistics must be updated regularly to ensure optimum performance.
Regular database maintenance is crucial to prevent and mitigate corruption issues. The REINDEX utility rebuilds indices, making them more consistent and removes any fragmentation in the database. The VACUUM utility reclaims storage occupied by dead tuples and updates table statistics for the query plan. It also ensures accuracy of the visibility map for efficient data access.
To execute database maintenance schedule for Postgres
The REBUILD operation drops and re-creates an index, fully removing fragmentation, reclaiming space, and updating statistics with a full scan. The REORGANIZE operation incrementally defragments the index, making it less resource-intensive. sp_updatestats updates statistics for all user-defined tables in the current database where data has changed, helping the query optimizer make better execution plans towards query performance.
To execute database maintenance schedule for SQL Server
To avoid performance issues, schedule database maintenance during non-operational hours at least once a week.
ThresholdsMonitoring disk system resource usage is essential to prevent application failure or downtime. Thresholds can be configured for the following resources to ensure your monitor application performance is optimum and send notifications if the threshold is exceeded.
| Field | Explanation | Configuration |
|---|---|---|
| Log File Size (displayed only in MSSQL setups) |
Prevent application downtime caused when the transaction log file (.LDF) used to record all transactions in MSSQL server grows large and fills up the disk space. | Enter a the preferred file size in MB. |
| Disk usage Space |
Prevent application failure caused when the available disk space is consumed as the disk usage increases with time. | Enter the preferred value in percentage. |
| Memory threshold Consumption | Monitor heap usage. If the memory space used exceeds the configured value, a heap dump profile will be generated. | Enter the preferred value in percentage. |
| CPU usage Consumption | Ensure steady application performance by monitoring unexpected increases spikes in CPU usage. | Enter a percentage value in the CPU usage field. |
Enable Send email notification and select the user roles or users to send the email notifications when a threshold is reached.
Click Save.
To optimize stability, you can set or modify limits on various report generation criteria such as row limits, character limits, the maximum number of simultaneous users, and report generation timeouts, advanced filtering criteria, and workstation limit for audit reports.