Performance issues caused by SQL statements in ASP

Source: Internet
Author: User
Today, modified a little last done in the office management System file upload bug, because the ASP SQL statement performance problems caused the Recordset object closed, the result of data warehousing failed. For this error, I can only now understand that:
When the SQL statement select * FROM Tab_files opens the table, and then calls the AddNew method to add the data to be updated, there is no problem on the surface, and the select * from Tab_files problem is exposed when the Tab_files table is recorded quite a few minutes, All selected data is written to the system memory buffer (the actual operation is completed by the Recordset), and the Recordset is shut down when the amount of data fetched from the database exceeds the threshold that the buffer can hold, and the final data warehousing of course fails.
I used a temporary workaround: Reconstruct an SQL statement that does not return any records, just like opening an empty table, and then the database update operation.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.