简体   繁体   English

.net的大型数据集的数据导入/导出

[英]Data Import/Export of large data sets with .net

has anyone experience with import and export of large collections (from a database in this case) with .net. 有使用.net进行大型集合(在这种情况下是从数据库)导入和导出的经验。

Using the database export itself is not possible because there are multiple database backends supported and i need this for a kind of platform independent export/import. 使用数据库导出本身是不可能的,因为支持多个数据库后端,而我需要使用它来实现一种与平台无关的导出/导入。

The problem here is that the XmlSerializer or DataContractSerializer classes read the data all at once for deserialization - but since the data sets can get extremely large this is not feasible. 这里的问题是XmlSerializer或DataContractSerializer类一次读取所有数据以进行反序列化-但是由于数据集可能变得非常大,因此这是不可行的。 Are there any solutions which build upon the existing serialization infrastructure but support iterative reading of the files? 是否有基于现有序列化基础结构但支持迭代读取文件的解决方案?

Thanks 谢谢

Take a look at FileHelpers . 看一下FileHelpers I've used that library in the past and it read and validated (via attributes attached to my import class members) about 25k records in a couple of seconds. 我过去使用过该库,并在几秒钟内读取和验证了(通过导入类成员的属性)约25,000条记录。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM