Deleting Documents from Large Repositories Is Slow and Processor Intensive.

December 20, 2004 | KB: 1000836
Server (MSDE) 7, Server (MSSQL) 7

Summary

Deleting documents in large repositories can be slow and processor intensive.

Cause

The trigger for entry deletions was not optimized.

Resolution

This issue is resolved in Laserfiche 7.0.3 and later. Please upgrade to the latest version of Laserfiche.

Note: The Laserfiche 7.0.3 upgrade process does not upgrade the SQL schema for preexisting databases. This means that new repositories created after upgrading to Laserfiche 7.0.3 will have the updated trigger, but existing repositories will not. The trigger must be manually updated for existing repositories. Please see the following workaround.

Workaround

Download and run a SQL script that updates the trigger in existing repositories.

Note: This update script should not be used with an Oracle database.

To update a SQL database's triggers

  1. Click here to download a zip file containing the SQL script.
  2. Extract hotfix_SCR18024.sql to a temporary location.
  3. Run the script directly from OSQL.
    1. Click Start and then click Run.
    2. In the Run dialog box, type the following and click OK to load a command prompt:

      cmd

    3. At the command prompt, type the following and press ENTER to run the script.

      OSQL -S SQLInstance -E -d DatabaseName -i "PathtoScript"

      DatabaseName is the name of the SQL database associated with your repository. PathtoScript is the location of hotfix_SCR18024.sql.

      SQL Server Instance (Laserfiche Server Team): The SQL Server instance name will be the name of the computer hosting the Laserfiche Server followed by a backslash and then the word "LASERFICHE." For example, if your server name is "Computer," then the corresponding SQL Server instance name is "Computer\LASERFICHE."

      SQL Server Instance (Standalone): The SQL Server instance name will be the name of the computer where the local repository resides followed by a backslash and then the word "LASERFICHE." For example, if your computer name is "Computer," then the corresponding SQL Server instance name is "Computer\LASERFICHE."