WCF RIA 更快地获取大数据

发布于 2024-12-26 03:52:57 字数 289 浏览 5 评论 0原文

我有一个 Silverlight 客户端(4.0)调用 WCF RIA 服务方法,该方法返回大量数据。该方法返回一个列表,其中 CustomObject 有大约 20 个字段。

我注意到,当列表中的项目数量为 20,000 时,速度非常慢。 如果我在服务器的 return 语句上放置一个断点,并在客户端放置一个断点,我可以看到,一旦从服务器返回列表,就需要至少 40 秒才能命中客户端的断点.我想知道为什么将数据从服务器传输到客户端需要花费这么多时间。

WCF RIA服务正常吗?有什么办法可以提高效率,

谢谢!

I have a Silverlight Client(4.0) calling a WCF RIA Service method which returns a large set of Data.The method returns a List where CustomObject has around 20 fields.

What i noticed is that it's extremely slow when the number of items in that list is 20,000.
If i put a break point on the return statement in the server and put one break point on the Client side, i can see its taking at least 40 seconds, to hit the break point on the client side once it returns the list from the server.I am wondering why is it taking so much time to bring the data from the server to the client.

Is it normal with WCF RIA services ? Is there any way to increase the efficiency,

Thanks !

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

或十年 2025-01-02 03:52:57

嗯,20.000 条记录是...20.000 条记录。在这种情况下,长时间的下载并不是一个罕见的问题。您可以做两件事:

  1. 对记录进行分页。
  2. 要求 WCF 压缩数据。不太确定这是否可能,因为 Silverlight 不使用完整的 WCF 功能。

Well, 20.000 records are... 20.000 records. The lengthy download is not an uncommon issue in a scenario like this. You might do two things:

  1. Page the records.
  2. Ask WCF to compress the data. Not really sure if this is possible as Silverlight does not uses the full WCF functionality.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文