[WebMethod]
public
DataSet GetALLUser()
{
System.Diagnostics.Stopwatch timer
=
new
System.Diagnostics.Stopwatch();
timer.Start();
string
sql
=
“
select top 100000 * from B_User where UID not in (select top 2000000 UID from [B_User])
“
;
DataSet ds
=
new
DataSet();
SqlDataAdapter ada
=
new
SqlDataAdapter(sql, conn);
ada.Fill(ds);
timer.Stop();
System.Diagnostics.Debug.WriteLine(
“
WebService 耗时(毫秒):
“
+
timer .Elapsed .TotalMilliseconds);
return
ds;
}
分布式计算,WCF+JSON+实体对象与WebService+DataSet效率大比拼
未经允许不得转载:大有博文 » 分布式计算,WCF+JSON+实体对象与WebService+DataSet效率大比拼