增加内存以获取大数据 [英] increase memory for fetch large data

查看:78
本文介绍了增加内存以获取大数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好


我在SL5和vs10中有一个项目   OS x64和8GB Ram


当我尝试通过LoadOperation<>来加载来自Domaun Service的大数据 'OutOfMemoryException'raise


如何在vs中增加默认内存以防止此异常


谢谢


解决方案



嗨Mohammad Imanloo,


>>如何在vs中增加默认内存以防止此异常


据我所知,VS并不限制默认内存,它可能由您的程序造成。所以,我建议你可以优化你的程序。


例如,当我们尝试一次获取大量数据时,我们需要尝试一些优化来确保性能并避免一些例外。


1:您可以考虑将DomainDataSource与DataPager一起使用,并在页面中显示数据。然后每次,它只返回可见记录,并避免内存不足异常。


http://msdn.microsoft.com/en-us/library/ee707363(v = vs.91).aspx


2:以下文章介绍了如何在Silverlight中处理大型数据集。您可以参考。

 

使用WCF和自定义DataGrids处理Silverlight中的大型数据集

https://www.codeproject.com/articles/70834/handling-large-data-sets- in-silverlight-using-wcf  




最好的问候,


Yohann Lu


Hello all

I have a project in SL5 and vs10 -  OS x64 and 8GB Ram

when I try to load my large data from Domaun Service by LoadOperation<>  'OutOfMemoryException' raise

How can I increase my default memory in vs to prevent this exception

thank you

解决方案


Hi Mohammad Imanloo,

>>How can I increase my default memory in vs to prevent this exception

As far as I know, VS does not limit the default memory, It may cause by your program. So, I suggest you can optimize your program.

For example, when we try to get a lot of data at once, we need to try some optimization to ensure performance and avoid some exceptions.

1: You may consider to use the DomainDataSource with DataPager and display Data in pages. Then each time, it will only return visible records and will avoid out of memory exception.

http://msdn.microsoft.com/en-us/library/ee707363(v=vs.91).aspx

2: The following article introduces how to hand a large data set in Silverlight. You can refer it.
 
Handling Large Data Sets in Silverlight using WCF and Customized DataGrids
https://www.codeproject.com/articles/70834/handling-large-data-sets-in-silverlight-using-wcf 


Best Regards,

Yohann Lu


这篇关于增加内存以获取大数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆