对象中将存储多少数据 [英] How much data will be stored in the object

查看:87
本文介绍了对象中将存储多少数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



该类的对象中将存储多少数据...

becoz
我将执行sql"Select * from emp"
使用数据集可以给我80-90,000条记录
(我在软件中需要那么多...)

我应该使用对象吗?

Hi,

How much data will be stored in the object of the class...

becoz
i will execute sql "Select * from emp"
it gives me 80-90,000 of records by using dataset
(i required that much in my software...)

should i use object?

推荐答案

依赖.

有点像问一根弦多长?"

由于您从所有行中检索所有字段,而不管是否需要它们,因此在很大程度上取决于您在每一列中存储的内容.如果只有一列包含一个整数值,则存储的数据将比有两打列(图像的一半)少得多.

我要说的是,要返回的记录超过80,000条-我个人将通过过滤或分页来减少行数,具体取决于我对它们的处理方式.
Depends.

It''s a bit like asking "how long is a piece of string?"

Since you retrieve all fields from all rows, regardless of whether you need them or not, it depends to a very large extent on what you store in each column. If you have one column, containing an integer value, you will store a lot less data than if you have two dozen columns, half of then images.

I would say that 80,000+ records is quite a few to return - I would personally be looking at reducing the number of rows considerably by filtering or paging, depending on what I was doing with them.


您应该使用对象吗?那是什么意思??由于所有内容都从System.Object下降,因此您已经是.

您的问题根本不是很清楚,因此我们不知道您要问什么或为什么.
Should you use object?? What''s that supposed to mean?? Since everything decends from System.Object, you already are.

Your question is not very clear at all, so we have no idea what you''re asking or why.


这篇关于对象中将存储多少数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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