Re: Data access perfomance
- From: Eduardo Fonseca B. <EduardoFonsecaB@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 26 Aug 2005 04:53:08 -0700
Hi, thanks I kind reduce the time inserting into the database, the problem
was that I had a primary key on the table,
then I drop the keys and created a non clustered index, the insertion
reduce from 20 minute to 10, and into a document that lasted 11 hours the
time reduce to 5,
but this had one miliion registers.
Still I believe It's slow.
The insert statemente looks like
@ARE THE COMMAND REPLACED BY MY LOGIC@
? are the order parameters sent to the OledbParameters
INSERT INTO @TABLE_NAME@(COLUMN_NAME1, COLUMN_NAME2...)
VALUES( ?, ?...)
I better don't create stored procedures, my idea with this kind of
applications
is that the database structure should not be modified, but thanks anyway.
What does exactly do the Prepared() method?.
"Erland Sommarskog" wrote:
> Erland Sommarskog (esquel@xxxxxxxxxxxxx) writes:
> > How these INSERT statements look like? Do you compose the full string
> > or do you parameterise the command?
> >
> > I can't discuss Oracle, but for SQL Server, the following measures
> > can be taken:
> >
> > 1) Use parameterised commands (this applies to Oracle as well, as you
> > should never put in your values directly into the string.)
>
> I forgot to mention: I believe that there is a .prepare method/property
> on the command object. Setting this one can also be a way to improve
> performance.
>
>
> --
> Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx
>
> Books Online for SQL Server SP3 at
> http://www.microsoft.com/sql/techinfo/productdoc/2000/books.asp
>
>
.
- Follow-Ups:
- Re: Data access perfomance
- From: Erland Sommarskog
- Re: Data access perfomance
- References:
- Data access perfomance
- From: Eduardo Fonseca B.
- Re: Data access perfomance
- From: Erland Sommarskog
- Re: Data access perfomance
- From: Eduardo Fonseca B.
- Re: Data access perfomance
- From: Erland Sommarskog
- Re: Data access perfomance
- From: Erland Sommarskog
- Data access perfomance
- Prev by Date: Re: Data access perfomance
- Next by Date: Did DataExpert suuport to connect DataReader and Object in VS2003?
- Previous by thread: Re: Data access perfomance
- Next by thread: Re: Data access perfomance
- Index(es):
Relevant Pages
|