Re: Walking Dataset, faster/better way?! Help!!!
- From: "Yuancai \(Charlie\) Ye" <nospam@xxxxxxxxx>
- Date: Tue, 6 Dec 2005 08:01:34 -0500
Hi,
In regards to use of cursors, it depends what applications you develop.
If applications are desktop ones that are not used by many users, cusors are
definitely helpful for navigating a large set of records because
applications has no need to load all of records into a "in-memory" database.
Currently, ADO.NET is really poor in this aspect plus others. If you don't
want to use a cursor, simply close it after you get all of records.
Yuancai (Charlie) Ye
www.udaparts.com
"ChadCThomas" <ChadCThomas@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:4AA0C2E8-55C2-405B-809B-CE12527A15BA@xxxxxxxxxxxxxxxx
> When we moved this functionality into SQL Server, it was the cursor that
> carried the weight for us.
>
> .Net will never perform this type of analysis the way SQL server can.
>
> "IUnknown" wrote:
>
>> Hi, Alex:
>> You need to use server cursor for your case. See if OleDBPro for
>> dotNet
>> is helpful to you at http://www.udaparts.com/oledbpronet.htm
>>
>>
>> "Alex" <Alex@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>> news:33373BB1-E498-4B05-9B9E-BD0D9FE97286@xxxxxxxxxxxxxxxx
>> > Hi! I've been looking for the solution for this problem for a while
>> > now.
>> > I
>> > hope that someone out there knows a more efficient way to do this.
>> > In short, I have a Dataset with n amount of records. I need to go 1
>> > row
>> > at
>> > a time comparing values in some of its columns against similar columns
>> > in
>> > all
>> > other rows in the same Dataset. Then, I move to the next row and do the
>> > same
>> > again. When I find some qualified records I add those rows to another
>> > local
>> > Dataset that is being pushed back to SQL once the process is complete.
>> > But
>> > problem as you can see is that if there are thousands or rows in
>> > original
>> > dataset I end up processing n X n amount of rows and it seems to really
>> > hinder the performance and takes to long to process. If someone knows
>> > a
>> > better way to do such comparison please let me know. The source data
>> > comes
>> > from Oracle, but is stored in a regular Dataset so I'm opne to any
>> > suggestions.
>> >
>> > thanks in advance...
>> >
>> > Alex
>>
>>
>>
.
- References:
- Re: Walking Dataset, faster/better way?! Help!!!
- From: IUnknown
- Re: Walking Dataset, faster/better way?! Help!!!
- Prev by Date: Performance of GetRequestStream very slow
- Next by Date: Re: Performance of GetRequestStream very slow
- Previous by thread: Re: Walking Dataset, faster/better way?! Help!!!
- Next by thread: Re: Walking Dataset, faster/better way?! Help!!!
- Index(es):
Relevant Pages
|