Navigate
Wasp Helpdesk
  • Register

  • or
  • Login
    Need a password reminder?
or
Contact Us
  • Get in touch

    Send us an email

  • Start a chat session

  • Knowledgebase Read help articles
  • News News & updates
  • Contact Us We are here to help
  • Training View our options
  • Product Sunsets Non-Supported Products
Barcode System Consult
Barcode Printer Consult
Barcode Label Consult
  • Portal
  • Knowledgebase
  • Cloud
  • AssetCloud On-Premise & InventoryCloud On-Premise: SQL scripts to improve slow performance
Subscribe Download PDF

AssetCloud On-Premise & InventoryCloud On-Premise: SQL scripts to improve slow performance

Scott Leonard
2023-11-14
in Cloud

AssetCloud On-Premise & InventoryCloud On-Premise can develop slow performance over time. You can run some SQL scripts in SQL Server Management Studio to improve performance. It's best to run these scripts when end users are not actively using the system.

1. Disconnect any connection to the Wasp databases to prevent interference. Make a new query, copy/paste the following script into the window, then click the Execute button in the toolbar.


-- Make sure no one is running anything against the Wasp databases
USE [master];
DECLARE @kill varchar(8000) = '';
SELECT @kill = @kill + 'kill ' + CONVERT(varchar(5), session_id) + ';' FROM sys.dm_exec_sessions
WHERE database_id in ( db_id('WaspTrack'), db_id('WaspConfig'), db_id('WaspAuth'))
EXEC(@kill);
-- Make sure no one is running anything against the Wasp databases



2. Find the Wasp Stored Procedures we'll be working with, spWaspBarcodeInternalDefragTenant and spWaspBarcodeInternalRecompileStatistics. Expand Databases, WaspTrack, Programmability, Stored Procedures, then scroll down to the bottom of that section.

OP-perf-1-list.png



3. Right-click spWaspBarcodeInternalDefragTenant , then Execute Stored Procedure.

OP-perf-2-execute.png



4. Check the first and third checkboxes, and type a 1 in the second and fourth Value, as shown below. Click OK, and wait until the procedure completes.

OP-perf-3-defrag.png



5. Right-click spWaspBarcodeInternalRecompileStatistics, then Execute Stored Procedure. Check both checkboxes as shown below. Click OK, and wait until the procedure completes.

OP-perf-4-statistics.png



This procedure is complete.

Rate the quality of this page

This page was helpful :) :( This page was not helpful

Quick Jump
  • Wasp Helpdesk
  • Knowledgebase
  • News
  • Contact Us
Top
Helpdesk software provided by Deskpro