Asp. NET page, what is the quickest way to display a database recordset?

Source: Internet
Author: User
Asp.net| Recordset | data | database | show | page chick shooter in the DataGrid use practice mentioned DataGrid performance problem, now see Microsoft DEV411 ASP.NET:Best practices for The performance contains quantitative data and extracts it.

On average:
-DataReader is 16% faster than a dataset.
-SqlDataReader is 115% faster than OleDbDataReader.
-Subscript reference is 11% faster than the field name reference
-Case matching field name is 1% faster than the case mismatch field name
-Write script directly 223% faster than DataGrid
-No ViewState, 66% faster than viewstate.
-39% faster than template columns without template column
-Explicit type conversion is faster than databinding 11%
-Use data cache 667% faster than standard DataGrid
-Use output cache to be infinitely faster than a standard DataGrid

The conclusion is very clear, it will not be translated,:-)



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.