我们可以将1 Lakh Records绑定到DataSet [英] Can we bind 1 Lakh Records to DataSet

查看:69
本文介绍了我们可以将1 Lakh Records绑定到DataSet的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友们,



我可以将一个Lakh记录绑定到数据集,如果我绑定会发生什么,请建议我。

Hi friends,

can i bind one Lakh records to dataset, What happend if i bind, please suggest me.

推荐答案

DataTable可以存储的最大行数是16,777,216。

参考: http://msdn.microsoft.com/en-us/library/system.data.datatable.aspx [ ^ ]

你可以达到但是大量的记录会导致许多其他问题,如网络超时,内存问题,性能等。

您最好重新考虑一下您的应用程序架构
The maximum number of rows that a DataTable can store is 16,777,216.
reference:http://msdn.microsoft.com/en-us/library/system.data.datatable.aspx[^]
you can go up to that but large number of records will lead many other issues like, network timeouts, memory issues, performance etc..
you better rethink about your application architecture


是的你可以将1Lak记录添加到数据集。

为此,您可以这样做

1.读取所有记录并通过代码将记录拆分为10000或25000

2.使用线程处理记录(将数据存储到数据库中)



好​​处:

通过这个,您可以轻松找到未插入或更新的记录数并保存失败记录到单独的CSV或Excel文件中

没有网络问题。
Yes you can add 1Lak records to dataset.
For this here you can do like this
1.Read all the records and Split the records into 10000 or 25000 through your code
2.Use threads to process the records(Store data into database)

Benefits:
With this you can easily find how many records are not get inserted or updated and save the failed records into a separate CSV or Excel file
No network issues.


这篇关于我们可以将1 Lakh Records绑定到DataSet的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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