Performance 这个wcf服务有效吗?

Performance 这个wcf服务有效吗?,performance,wcf,Performance,Wcf,接口 [ServiceContract] public interface Idemo { [OperationContract] [WebGet(UriTemplate = "check?Value1={id}&Value2={name}&Value3={city}", ResponseFormat = WebMessageFormat.Xml, BodyStyle = WebMessageBodyStyle.Bare)] string GetData

接口

[ServiceContract]
public interface Idemo
{
    [OperationContract]
    [WebGet(UriTemplate = "check?Value1={id}&Value2={name}&Value3={city}",
ResponseFormat = WebMessageFormat.Xml, 
BodyStyle = WebMessageBodyStyle.Bare)]
    string GetData(string id,string name);
}
阶级

返回表如下所示

sem sub1 sub2 sub3

 1   50   40   30

 2   60   20   40
界面设计好吗?我没有使用任何合同。还有别的加速方法吗


我听说要将数据集转换为自定义的DataContract并发送它。。在我的场景中可能吗?

如果您有性能问题,则它不在您发布的代码中

用于获取数据的方法的名称是“getDataTable”,您还提到了数据集的使用


数据集的使用会带来开销,您应该考虑优化从数据库中获取数据的方式。

为什么要加快速度?你确定它太慢了吗?
sem sub1 sub2 sub3

 1   50   40   30

 2   60   20   40