Is there any replacement to Dataset, so Data is saved to the disk, rather than stored in memory? I have to populate a dataset with an enormous amount of data, which can cause Out Of Memory exceptions. There is nothing I can do to reduce the amount of data as it’s driven by user requirements.
是否有任何替换数据集,所以数据保存到磁盘,而不是存储在内存中?我必须使用大量数据填充数据集,这可能导致Out of Memory异常。由于用户需求驱动,我无法减少数据量。
1 个解决方案
#1
1
I would check if it would be possible to use a DataReader
instead, as you then would process the records as they arrive from the database instead of first storing everything in memory.
我会检查是否可以使用DataReader,因为您将在数据库到达时处理记录,而不是先将所有内容存储在内存中。
#1
1
I would check if it would be possible to use a DataReader
instead, as you then would process the records as they arrive from the database instead of first storing everything in memory.
我会检查是否可以使用DataReader,因为您将在数据库到达时处理记录,而不是先将所有内容存储在内存中。