Re: OleDbCommand.ExecuteReader Performance
From: Elad (Elad_at_discussions.microsoft.com)
Date: 01/20/05
- Next message: Aleko Petkov: "Encoding/decoding strings for SQL"
- Previous message: mekim: "INSERT from a DataTable"
- In reply to: Sahil Malik: "Re: OleDbCommand.ExecuteReader Performance"
- Next in thread: Sahil Malik: "Re: OleDbCommand.ExecuteReader Performance"
- Reply: Sahil Malik: "Re: OleDbCommand.ExecuteReader Performance"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 20 Jan 2005 06:45:03 -0800
Hi, thanks for your reply.
I'm referring to a very simple configuration of a client application
connecting to a server that is placed in another country. The OleDbCommand
object is created on the client and the query is sent to the server over the
web.
The client is not a web-based application (which is probably what you were
referring to).
"Sahil Malik" wrote:
> 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.
>
>
>
- Next message: Aleko Petkov: "Encoding/decoding strings for SQL"
- Previous message: mekim: "INSERT from a DataTable"
- In reply to: Sahil Malik: "Re: OleDbCommand.ExecuteReader Performance"
- Next in thread: Sahil Malik: "Re: OleDbCommand.ExecuteReader Performance"
- Reply: Sahil Malik: "Re: OleDbCommand.ExecuteReader Performance"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|