Re: ADO.net Code contest
- From: "Frans Bouma [C# MVP]" <perseus.usenetNOSPAM@xxxxxxxxx>
- Date: Thu, 12 Jan 2006 00:30:22 -0800
William (Bill) Vaughn wrote:
> Try beginning a transaction before these updates and see what
> happens. As it is JET won't write these rows to the database until
> it's "idle" so it's not really measuring anything except moving rows
> to JET's database cache in memory. When uploading to SQL Server (and
> not using BCP) we roll our own INSERT statements and fill in the
> values using string replacement tags. However, I expect the
> Parameter approach is going to fare well against the raw INSERT
> technique since you can't batch them in JET. You might also try
> executing the INSERT asynchronously and do the prep work while you're
> waiting.
Ah , that's why starting a transaction before the dataset write
started was saving 7-8 seconds! I already wondered why on earth it
could be faster when it was in a transction...
FB
--
------------------------------------------------------------------------
Get LLBLGen Pro, productive O/R mapping for .NET: http://www.llblgen.com
My .NET blog: http://weblogs.asp.net/fbouma
Microsoft MVP (C#)
------------------------------------------------------------------------
.
- References:
- Re: ADO.net Code contest
- From: Frans Bouma [C# MVP]
- Re: ADO.net Code contest
- From: William \(Bill\) Vaughn
- Re: ADO.net Code contest
- Prev by Date: Re: I am a winner :-)
- Next by Date: Re: I am a winner :-)
- Previous by thread: Re: ADO.net Code contest
- Next by thread: Re: ADO.net Code contest
- Index(es):
Relevant Pages
|