Submit a ticketCall us

Have You Auto Renewed? If not, you're missing out.
The SolarWinds Renewal Program comes with a host of benefits including the most recent product updates, 24/7 technical support, virtual instructor-led training and more. Experience all of this with the convenience of Auto Renewal, and never worry about missing any of these great benefits. Learn More.

Home > Success Center > Server & Application Monitor (SAM) > Truncate large APM HardwareItem tables

Truncate large APM HardwareItem tables

Table of contents
Created by Malik Haider, last modified by Malik Haider on Jul 30, 2016

Views: 200 Votes: 0 Revisions: 7

Updated July 22, 2016

Overview

This article describes how to truncate APM_HardwareItem tables holding large historical data for SAM, which only contain device hardware statuses. Truncating these tables will involve re-polling the current status of the hardware and re-populating the table. 

 

Truncating tables will reduce the database size significantly and help the application and database perform faster including loading data on the website.   

 

Note: This article is part of the Quick Orion database health check guide. SolarWinds strongly recommends to go through the full guide and check your current database health and settings. 

 

table_name rows size_in_kb
APM_HardwareItem_Detail 1381684300 11860320
APM_HardwareItem_Hourly 69985120 4248400
APM_HardwareItem_Daily 34829770 2279760

 

 

Environment

SAM 6.0 and later

Steps

  1. Create a backup of your Orion database. Refer to Backing Up, Restoring, and Migrating Your Orion Database.
  2. Run the following SQL query through Database Manager. Refer to Run an SQL query in Orion Database Manager on Windows Server 2008.
    Truncate table     APM_HardwareItem_Detail
    Truncate table     APM_HardwareItem_Hourly
    Truncate table     APM_HardwareItem_Daily
  3. Click Execute Query.
  4. Shrink the Orion Database  to reclaim the unused free space.

 

 

 

Last modified

Tags

Classifications

Public