VBScript Out Of Memory Error

后端 未结 3 750
傲寒
傲寒 2021-01-03 03:03

I have a classic ASP CRM that was built by a third party company. Currently, I have access to the source code and am able to make any changes required.

Randomly t

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-03 03:29

    Just going to throw this in here, but this problem has taken a long time to solve. Here's a breakdown of what we did:

    1. We took all the inline SQL and made SQL Views, every SELECT statement is now handled with a VIEW first.

    2. I took every single SQL INSERT and UPDATE (as much as I could without breaking the system) and put them into Stored Procedures.

      #2 was the one item that really made the biggest difference

    3. Went through several thousand scripts, and ensured that variables were properly disposed of, and all the DB Open Connections were followed correctly with a Close Connection and same with Open/Close RecordSet.

    4. One of the slow killers was doing something like:

      ID = Request.QueryString("ID)

    at the top of the page. Before redirecting, or closing a page, there is always a:

    Set ID = Nothing 
    

    or the complete removal of the inference.

提交回复
热议问题