【发布时间】:2017-01-12 00:15:03
【问题描述】:
我正在尝试从 WCF 服务返回大型结果集。大型结果集可能有大约 50 万条记录,每条记录有 150 列。
我知道通过配置 WCF 绑定,我们可以返回大型结果集。但我不确定这个限制。我尝试了这种情况,但即使我将值设置为该属性的“2147483647”,也会增加“maxItemsInObjectGraph”属性的限制。我搜索了替代选项,发现这可以通过 Binding 的 messageEncoding 和 transferMode 属性来实现。我尝试了“Mtom”和“StreamResponse”,但我不确定它是如何工作的?
我还提到了this 链接,但不想进行分页,因为我的客户需要一次性获取数据。
所以结论是:
1. Can we return large result set from WCF? Or Does the use of WCF best to return large result set or I need to move to different way like WebAPI?
2. StreamResponse should work like returning results in chunck I guess but after implementation, I don't think it is working as I am getting result altogether.
您的意见将不胜感激。
谢谢!!
【问题讨论】:
标签: json xml wcf wcf-data-services wcf-binding