Go Back  Xtreme Visual Basic Talk > Visual Basic .NET (2002/2003/2005/2008, including Express editions) > .NET Database and Reporting > Speeding up the datareader for crystal reports


Reply
 
Thread Tools Display Modes
  #1  
Old 03-16-2004, 05:39 AM
FunkMaster FunkMaster is offline
Newcomer
 
Join Date: Feb 2004
Location: La Rioja, SPAIN
Posts: 14
Unhappy Speeding up the datareader for crystal reports


Maybe it's just my computer, or the fact that I'm testing my program in Debug mode...

But my report is very simple and it searches in the DB to find all products that have the same FAMILY as the FAMILY_variable that the user has selected and then list the resulting products.

There are 26000 products in the DB and when I run the program it takes more than 60 seconds to generate the report which normally is only 1 page long.

Should it take this long? If not, how can I speed this up?
Reply With Quote
  #2  
Old 03-16-2004, 09:00 AM
Denaes's Avatar
Denaes Denaes is offline
Junior Contributor
 
Join Date: May 2003
Posts: 335
Default

If run your application and run this Crystal Reports Data Reader function twice, does it take as long each time?

With .Net, the first time an operation is performed, its slower because it's being compiled. The second time it should be faster becuase its cached.

If that's helping it to go slower because its compiling, you might want to make that code a seperate component (.dll) and skip the IL code and fully compile it. It may loose some optimization, but sometimes you need it fast the first (and only) time you're going to use it.

I'd say another alternative would be to do a testrun through the procedure when you boot up, but if its a whole minute, I don't think people are going to want to wait that long.

If this isn't the issue, then posting your code related to the Crystal Report would probobly help.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
updating text boxes while running script jpaugh78 Excel 2 12-24-2003 10:30 PM
Crystal Reports Date Format Big Boabby Database and Reporting 9 03-19-2003 09:42 AM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->