数据集创建拥有巨大表的性能问题使应用程序占用了大量内存,并在运行时降低了应用程序的速度. [英] Dataset Creation Performance issues of having a huge table make app eat a lot of memory and slow down app at run-time.

查看:74
本文介绍了数据集创建拥有巨大表的性能问题使应用程序占用了大量内存,并在运行时降低了应用程序的速度.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好.我目前在这里遇到性能问题,我的sql server 2008中有超过30万行数据,并且我目前正在开发一个应用程序,以将文本文件导入到我的sql数据库中,而该数据库已经有30万行.

Hello. I am currently having a performance issue here i have more than 300K line of Data in my sql server 2008 and i am currently developing an app to import textfile to my sql db which is already having 300K lines.

问题在于,当代码开始创建数据集时,这会花费很多时间并使我的应用程序运行缓慢.

The problem is this when the code start to create the dataset it takes a lot of time and make my app very slow.

任何人都会提出这样的解决方案吗?我已经读到在创建数据集时添加主键将对我有帮助,但是调试器告诉DBNULL应该检查任何其他解决方案会出错,这是有问题的.

Does any body come up with a solution like this. i have read that adding a primary key upon creating of the dataset will help i tried but there is something wrong the debugger tells the DBNULL should be check any other solution will be appreciated.

 

主要问题-创建数据集时发布的性能.

Primary Problem - Performances issued when creating dataset.

次要-在代码中创建主键.

Secondary - Primary key creating in code.

 

预先感谢

 

分析

 

 

 

推荐答案

此论坛专门讨论Windows Mobile应用程序.请尝试在相关论坛中进行查询.

This forums is dedicated to Windows Mobile applications. Please try your query with relevant forums.

请查询与移动应用程序有关的查询.

Please explore your query with if it is related to Mobile applications.


问候

Malleswar

Malleswar


这篇关于数据集创建拥有巨大表的性能问题使应用程序占用了大量内存,并在运行时降低了应用程序的速度.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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