Re: Really slow, painfullu slow asp.net web app
- From: "Mike" <michael@xxxxxxxxxxxx>
- Date: 15 Feb 2006 15:02:22 -0800
Hi,
Fixed it.
As one might see from above code, I was using DataView's &
DataRowView's to filter the tables (which gets fairly large as it
processes an image).
Don't use DataView's or DRV's (even though documentation stresses them
heavily).
Not saying, never use them, but if you are adding data, large amounts
of it, to tables via/thru DVs, it will bog down.
I moved code to a windows app, just to see if it was ASP.NET related
issue.
But windows app, alos slowed way down (oh, btw, in prototype windows I
was not using tables but rather storing data in arrays, hashtables,
collections, etc. which is why prototype was fast).
End up, in trying one thing after another, creating several (variable
number depending upon how an image is to be processed) seperate tables,
then using table.select methods to find/sort/add and it zips right
along.
Then moved it back to a web app.
With DV method ran it twice overnight ... always bombed out, yet
aspnet_wp.exe still churning away in the background ... 16 hours or so
.... nver finishing, web page ceasing to display, aspnet_wp.exe churning
away ....
By working directly with tables (an array of them) it can process the
image 3 times, essentially, in 3.75 minutes, with no lock up, boom
done.
HTH someone.
Mike
.
- References:
- Really slow, painfullu slow asp.net web app
- From: michael
- Re: Really slow, painfullu slow asp.net web app
- From: Kevin Spencer
- Re: Really slow, painfullu slow asp.net web app
- From: Mike
- Really slow, painfullu slow asp.net web app
- Prev by Date: Re: Excel (in XML format) to a dataset
- Next by Date: Re: Get DataKey on RowDataBound
- Previous by thread: Re: Really slow, painfullu slow asp.net web app
- Next by thread: Help: Call another page
- Index(es):
Relevant Pages
|