Home > Net > The DataSet DST=db. ExecuteDataSet (CMD); methods
The DataSet DST=db. ExecuteDataSet (CMD); methods
Time:01-01
2 nuclear CPU, 2 gb of memory, speed of 2 m, The DataSet DST=db. ExecuteDataSet (CMD); Return to a more than 200 data with the use of more than 10 seconds slower 20 seconds when
After the debugging SQL statement select * from TheLaw order by OrderBy 0 seconds The DataSet DST=db. ExecuteDataSet (CMD); 10-20 seconds between Binding tree 1 secondsEnclosing view state (" ds ")=ds; AddTree (" ", (TreeNode) null, "");
Because of the slow reaction, I added the server cache System. Web. The HttpRuntime. Cache. The Add if cached will save the DataSet DST=the ExecuteDataSet (CMD); Results 1 seconds,
Add a caching section fix (problem analysis) Bandwidth issues Two kinds of circumstances access speed, the same should not be bandwidth issues Memory problems The second increase memory storage faster instead, should not memory problems CPU problems That only CPU problem, CPU is E5-2682 2.50 GHz, by definition, pull 300 data shouldn't be so slow ah,
Have a great spirit experience? Is this why? The problem is U? Or memory problems, or network problems, understand the people under the guidance of the
CodePudding user response:
CodePudding user response:
CSDN decline? To explore the person all have no,
CodePudding user response:
ExecuteDataSet method is what, haven't seen the
CodePudding user response:
May be a code problem, if the memo field is not needed, the change, had better select statement written Select the field name instead of select *
CodePudding user response:
This is not a light to see problems, First of all, 1 loading the DataSet, need time, 2 what is ExecuteDataSet method, we also don't know, 3 network whether unobstructed, And as for you said cache, actually not count, Because he almost ignored the 3 steps above, You didn't really find out why,
CodePudding user response:
Your web server to less, the database server and application three systems, who you can distinguish the foot out of the question?