StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Ideas on how to spead loading of WizardExpand / Collapse
Author
Message
Posted 11/28/2006 2:04:13 PM
StrataFrame VIP

StrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIP

Group: StrataFrame Users
Last Login: Today @ 5:42:07 PM
Posts: 1,322, Visits: 3,437
I have a wizard that I'm adding 64 pages to in form load event. I'm also loading a treeview as an alternate nav method to pages in the wizard.

It is taking about 4-5 secs and I'd like to speed it up (or have the appearance of it speeding up...i.e. if it could be cached, that'd be fine). Any ideas? If pages could be inserted at a specific location, I'd have some of them set at design time, but 45 pages are data driven (45 with the current data), so that would only help some anyway.

Thanks!
Post #4827
Posted 11/28/2006 2:10:29 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 10/21/2008 9:20:58 AM
Posts: 2,685, Visits: 1,887
Adding that many pages through code shouldn't slow down that much... 4-5 seconds is too long, I think.  I'm guessing most of your slow down is coming from the queries that you're running to populate the wizard with the pages.  If you run one query that returns "master" 45 records, one for each page, and then you run queries to gather the data for all of the controls on that page, you might be looking at around 100-200 queries to build the list.  What you could do is populate the collection on a thread behind the scenes... show something to let the end-user know that it's working while you're populating.


www.bungie.net
Post #4829
Posted 11/28/2006 2:34:07 PM
StrataFrame VIP

StrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIP

Group: StrataFrame Users
Last Login: Today @ 5:42:07 PM
Posts: 1,322, Visits: 3,437
(as you know by now) I'm a noob at this stuff, so could you post a quick example of how to do this threading thing? I've done a bit of sewing, but that's about as much as I know about threading

Thanks!
Post #4834
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 5:52pm

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.125. 10 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.