Access to | data | The database has always thought that database access is much slower than local file access, but it's not clear how slow it is. Finally could not help to make a comparison test.
Test environment: OS---Windows server databaseserver----SQL Server 2000 program language: CSharp
Test method: Read the parameter table from the database/read the record of the equivalent number of configuration parameters from the XML and instantiate the object.
The test procedure is as follows:
Using System;
Using System.Globalization;
Using System.IO;
Using System.Xml.Serialization;
Using System.Xml;
Using System.Data;
Using System.Data.SqlClient;
Has done many tests, basically is above the quantity level (one order of magnitude) the difference (the first execution difference), therefore proposed, everybody to save the data which does not need to modify frequently the local parameter file form is more efficient than the direct reading from the library.
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.