Re: OleDbCommand.ExecuteReader Performance

From: Sahil Malik (contactmethrumyblog_at_nospam.com)
Date: 01/20/05


Date: Thu, 20 Jan 2005 07:17:26 -0500

Okay --- even in a web based environment, your server is what holds the
OleDbCommand instance, which is not communicating over HTTP to the
underlying database. So it's only as bad as the connection between your web
server and your oledb database is.

To get chunks of data instead - you can use DataTable/Dataset.

- Sahil Malik
http://dotnetjunkies.com/weblog/sahilmalik

"Elad" <Elad@discussions.microsoft.com> wrote in message
news:84ECAA3A-27E3-4788-8C1E-E172D7C8A821@microsoft.com...
> Hi,
> I have a question regarding OleDbCommand.ExecuteReader.
>
> From what I understand, ExecuteReader fetches rows on demand, on a row by
> row basis.
>
> What are the implications of using this method when your database is
> accessed over the web? Won't it be terrible slow? The reason I ask this
> is
> because it seems that each time I call OleDbDataReader.Read(), an HTTP
> request is sent to the server and one row of data is returned.
>
> Is there a better way of receiving user-defined chunks of data from
> databases? I would rather not use OleDbDataAdapter as it is too slow.
>
> Thanks.



Relevant Pages

  • Create SharePoint Portal failed.
    ... One mentioned ensuring that SQL Server uses a case ... 13:55:40 Service database server is 'USDC-JOHRIV'. ... Update dbo.propertylist set DisplayName = N'Last name' ...
    (microsoft.public.sharepoint.portalserver)
  • Re: ADO Connection Timeout
    ... to the central server, but you are willing to live with periods where it ... i.e. a local database or even a text file. ... to function until the connection can be restored to the server. ...
    (microsoft.public.data.ado)
  • Web Developers - Happy Hearts And HDTV! - Lockergnome
    ... Certificate on your MSIIS Web server. ... getting data from a database is only half the problem. ... Zend recently started a series about building rock solid code in PHP. ... which provides bulk database conversion. ...
    (freebsd-questions)
  • Config for OLTP system
    ... extrenal disks fo the 60GByte database server. ... IBM Informix Dynamic Server Configuration Parameters ... # BUFFSIZE - OnLine no longer supports this configuration parameter. ...
    (comp.databases.informix)
  • Re: TNS could not resolve the connect identifier
    ... This database resides on Machine A. ... The Web server is running on Machine B. ... Using tnsping is not as good as using a real connection such as via ... client (note that this is terminology that appears in the 10g R2 ...
    (comp.databases.oracle.server)