Ask a Question related to ASP Database, Design and Development.
-
Ken McAndrew #1
Rendering large recordsets
I'm trying to work on some performance issues in a couple of areas. The
scenario is that I have an 8000+ recordset that's returned and intended to
be written to a drop-down list. This can take up to 10 minutes or more to
occur. I already have the query in a stored procedure, and I've set up
disconnected recordsets to try and help as well. With buffering on, there
doesn't appear to be any action happening, though I'm considering using
Response.Flush to force a render every 100 records or so, so it doesn't look
dead to the end user.
Similarly, I have the same data (with more fields) writing out to a large
HTML table. I've instituted paging on this, at 100 records per page, but it
seems like the first load still takes awhile, I'm guessing to load up the
recordset; it seems to run faster after it gets to the page for the first
time.
I found an article on paging methods earlier in the newsgroup that I'm going
to try for the second issue, but does anyone have any suggestions for the
first issue? I did try a GetRows dump to an array, but that produced no
noticable performance improvement. The procedure does come up quickly in
Query Analyzer as well, so I think it's just the rendering.
Thanks.
--
Kenneth S. McAndrew
Software Developer, Information Concepts
[email]kmcandrew@infoconcepts.com[/email]
Ken McAndrew Guest
-
rendering <div Oops! rendering div style:display=none
The default for a certain page I'm working on is to hide a section of the page when it's loaded. So i set a div tag as follows: <div... -
ASP Recordsets
Hi there, i'm developing an ASP SQL application, and was just wondering whether for some reason this limited me to one recordset per page. the... -
[Urgent] Is there a size limit on returning a large dataset or a large typed array from web service?
Is there a size limit on returning a large dataset or a large typed array from web service? I couldn't find any article in MSDN about this..... ... -
Persisted XML Recordsets - Disconnected Recordsets - problems
I have a recordset, client side .ASP that I save as a DOM. I pass to a server side .ASP to reconnect the recordset and update. I keep getting an... -
Paging recordsets.
Hi All win 2k sp4 sql 2k sp3 asp vbscript iis5 I was looking at the ASPfaq(id 2120) the other week and it said that paging recordsets for... -
CJM #2
Re: Rendering large recordsets
I would say that 8000 row in a drop-down list is very excessive.
It can't be of benefit to the user to have to trawl through 8000 lines to
get the value they want. Can you not give them a free-text field to use, and
then validate their input against the data after the event?
Chris
"Ken McAndrew" <kmcandrew@infoconcepts.com> wrote in message
news:u0jBUwwGEHA.1720@tk2msftngp13.phx.gbl...look> I'm trying to work on some performance issues in a couple of areas. The
> scenario is that I have an 8000+ recordset that's returned and intended to
> be written to a drop-down list. This can take up to 10 minutes or more to
> occur. I already have the query in a stored procedure, and I've set up
> disconnected recordsets to try and help as well. With buffering on, there
> doesn't appear to be any action happening, though I'm considering using
> Response.Flush to force a render every 100 records or so, so it doesn'tit> dead to the end user.
>
> Similarly, I have the same data (with more fields) writing out to a large
> HTML table. I've instituted paging on this, at 100 records per page, butgoing> seems like the first load still takes awhile, I'm guessing to load up the
> recordset; it seems to run faster after it gets to the page for the first
> time.
>
> I found an article on paging methods earlier in the newsgroup that I'm> to try for the second issue, but does anyone have any suggestions for the
> first issue? I did try a GetRows dump to an array, but that produced no
> noticable performance improvement. The procedure does come up quickly in
> Query Analyzer as well, so I think it's just the rendering.
>
> Thanks.
>
> --
>
> Kenneth S. McAndrew
> Software Developer, Information Concepts
> [email]kmcandrew@infoconcepts.com[/email]
>
>
>
CJM Guest
-
Ken McAndrew #3
Re: Rendering large recordsets
Unfortunately no, I can't, nor can I limit the dropdown based on some other
entry. It's not every recordset that has this many, and it comes up alright
for 1000-2000 records at times. But there will be some, and I've heard the
possibility of up to 20,000 at a shot. It's only a couple of pages that this
happens on, but they're not in obscure parts of the application.
--
Kenneth S. McAndrew
Software Developer, Information Concepts
[email]kmcandrew@infoconcepts.com[/email]
"CJM" <cjmwork@yahoo.co.uk> wrote in message
news:OBFi10wGEHA.3360@TK2MSFTNGP12.phx.gbl...and> I would say that 8000 row in a drop-down list is very excessive.
>
> It can't be of benefit to the user to have to trawl through 8000 lines to
> get the value they want. Can you not give them a free-text field to use,to> then validate their input against the data after the event?
>
> Chris
>
> "Ken McAndrew" <kmcandrew@infoconcepts.com> wrote in message
> news:u0jBUwwGEHA.1720@tk2msftngp13.phx.gbl...> > I'm trying to work on some performance issues in a couple of areas. The
> > scenario is that I have an 8000+ recordset that's returned and intendedto> > be written to a drop-down list. This can take up to 10 minutes or morethere> > occur. I already have the query in a stored procedure, and I've set up
> > disconnected recordsets to try and help as well. With buffering on,large> look> > doesn't appear to be any action happening, though I'm considering using
> > Response.Flush to force a render every 100 records or so, so it doesn't> > dead to the end user.
> >
> > Similarly, I have the same data (with more fields) writing out to athe> it> > HTML table. I've instituted paging on this, at 100 records per page, but> > seems like the first load still takes awhile, I'm guessing to load upfirst> > recordset; it seems to run faster after it gets to the page for thethe> going> > time.
> >
> > I found an article on paging methods earlier in the newsgroup that I'm> > to try for the second issue, but does anyone have any suggestions for>> > first issue? I did try a GetRows dump to an array, but that produced no
> > noticable performance improvement. The procedure does come up quickly in
> > Query Analyzer as well, so I think it's just the rendering.
> >
> > Thanks.
> >
> > --
> >
> > Kenneth S. McAndrew
> > Software Developer, Information Concepts
> > [email]kmcandrew@infoconcepts.com[/email]
> >
> >
> >
>
Ken McAndrew Guest
-
dave #4
Re: Rendering large recordsets
You not only have a recordset problem, the html (size) generated would also
cause the client speed problems. A rethink is in order.
"Ken McAndrew" <kmcandrew@infoconcepts.com> wrote in message
news:OIsmRFxGEHA.3096@TK2MSFTNGP11.phx.gbl...other> Unfortunately no, I can't, nor can I limit the dropdown based on somealright> entry. It's not every recordset that has this many, and it comes upthis> for 1000-2000 records at times. But there will be some, and I've heard the
> possibility of up to 20,000 at a shot. It's only a couple of pages thatto> happens on, but they're not in obscure parts of the application.
>
> --
>
> Kenneth S. McAndrew
> Software Developer, Information Concepts
> [email]kmcandrew@infoconcepts.com[/email]
>
>
> "CJM" <cjmwork@yahoo.co.uk> wrote in message
> news:OBFi10wGEHA.3360@TK2MSFTNGP12.phx.gbl...> > I would say that 8000 row in a drop-down list is very excessive.
> >
> > It can't be of benefit to the user to have to trawl through 8000 linesThe> and> > get the value they want. Can you not give them a free-text field to use,> > then validate their input against the data after the event?
> >
> > Chris
> >
> > "Ken McAndrew" <kmcandrew@infoconcepts.com> wrote in message
> > news:u0jBUwwGEHA.1720@tk2msftngp13.phx.gbl...> > > I'm trying to work on some performance issues in a couple of areas.intended> > > scenario is that I have an 8000+ recordset that's returned andusing> to> to> > > be written to a drop-down list. This can take up to 10 minutes or more> there> > > occur. I already have the query in a stored procedure, and I've set up
> > > disconnected recordsets to try and help as well. With buffering on,> > > doesn't appear to be any action happening, though I'm consideringdoesn't> > > Response.Flush to force a render every 100 records or so, so itbut> large> > look> > > dead to the end user.
> > >
> > > Similarly, I have the same data (with more fields) writing out to a> > > HTML table. I've instituted paging on this, at 100 records per page,no> the> > it> > > seems like the first load still takes awhile, I'm guessing to load up> first> > > recordset; it seems to run faster after it gets to the page for the> the> > going> > > time.
> > >
> > > I found an article on paging methods earlier in the newsgroup that I'm> > > to try for the second issue, but does anyone have any suggestions for> > > first issue? I did try a GetRows dump to an array, but that producedin> > > noticable performance improvement. The procedure does come up quickly>> >> > > Query Analyzer as well, so I think it's just the rendering.
> > >
> > > Thanks.
> > >
> > > --
> > >
> > > Kenneth S. McAndrew
> > > Software Developer, Information Concepts
> > > [email]kmcandrew@infoconcepts.com[/email]
> > >
> > >
> > >
> >
>
dave Guest
-
Bob Lehmann #5
Re: Rendering large recordsets
Well, considering that your select listalone would be around around 350K
<option value="something">Something</option> = 44 bytes * 8000 = 352000
bytes
Why does it surprise you that your page is slow?
Bob Lehmann
"Ken McAndrew" <kmcandrew@infoconcepts.com> wrote in message
news:u0jBUwwGEHA.1720@tk2msftngp13.phx.gbl...look> I'm trying to work on some performance issues in a couple of areas. The
> scenario is that I have an 8000+ recordset that's returned and intended to
> be written to a drop-down list. This can take up to 10 minutes or more to
> occur. I already have the query in a stored procedure, and I've set up
> disconnected recordsets to try and help as well. With buffering on, there
> doesn't appear to be any action happening, though I'm considering using
> Response.Flush to force a render every 100 records or so, so it doesn'tit> dead to the end user.
>
> Similarly, I have the same data (with more fields) writing out to a large
> HTML table. I've instituted paging on this, at 100 records per page, butgoing> seems like the first load still takes awhile, I'm guessing to load up the
> recordset; it seems to run faster after it gets to the page for the first
> time.
>
> I found an article on paging methods earlier in the newsgroup that I'm> to try for the second issue, but does anyone have any suggestions for the
> first issue? I did try a GetRows dump to an array, but that produced no
> noticable performance improvement. The procedure does come up quickly in
> Query Analyzer as well, so I think it's just the rendering.
>
> Thanks.
>
> --
>
> Kenneth S. McAndrew
> Software Developer, Information Concepts
> [email]kmcandrew@infoconcepts.com[/email]
>
>
>
Bob Lehmann Guest
-
Bob Barrows [MVP] #6
Re: Rendering large recordsets
Ken McAndrew wrote:
You might want to look at my dynamic listbox demo that is available at> I'm trying to work on some performance issues in a couple of areas.
> The scenario is that I have an 8000+ recordset that's returned and
> intended to be written to a drop-down list. This can take up to 10
[url]http://www.thrasherwebdesign.com/index.asp?pi=links&hp=links.asp[/url]
Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Bob Barrows [MVP] Guest
-
Aaron Bertrand [MVP] #7
Re: Rendering large recordsets
> Unfortunately no, I can't, nor can I limit the dropdown
You don't have a choice. The browser is simply going to choke on very large
form elements. No magic trick is going to resolve that. Consider making
them choose the starting letter, or some kind of wildcard search, and going
to the server (in a modal window or hidden frame) to build the dropdown
based on the criteria.
Aaron Bertrand [MVP] Guest



Reply With Quote

