至于有关DataReader的一个小的混乱 [英] Regarding a small confusion about DataReader

查看:150
本文介绍了至于有关DataReader的一个小的混乱的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在读有关的DataReader,发现了约DataReader的声明,目前尚不清楚。这里是

I was reading about DataReader and found a statement about DataReader which is not clear. here it is

的DataReader读取从数据库并存储到网络缓冲区记录和给出每当请求。它释放对记录进行查询和执行不 等待整个查询来执行。因此,非常快,比较其加载在内存中的所有数据后释放数据的数据集。

DataReader fetches the records from database and stores in the network buffer and gives whenever requests. It releases the records as query executes and do not wait for the entire query to execute. Hence very fast as compare to the DataSet which releases the data after loading all the data in memory.

1),它说,的DataReader 获取在网络缓冲区从数据库中存储的记录? 我真的不明白什么是网络缓冲区? 谁能告诉我的这是什么意思网络缓冲区

1) it says that DataReader fetches the records from database and stores in the network buffer? i really do not understand what is network buffer? can anyone tell me what does it mean network buffer?

推荐答案

请参阅这MSDN文章。网络缓冲区是内存存储将保存一定量的数据中的哪一个通常较小的整个数据集的客户端上。当数据从缓冲器读取,它将被重新填充有从数据库中多个数据

See this MSDN article. The network buffer is in-memory storage on the client that will hold a certain amount of data which is generally smaller that the entire dataset. As data is read from the buffer, it will be re-filled with more data from the database.

这篇关于至于有关DataReader的一个小的混乱的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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