This is a migrated thread and some comments may be shown as answers.

Add Series over time

0 Answers 36 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Baatezu
Top achievements
Rank 2
Baatezu asked on 30 Aug 2010, 07:03 PM
I have a stored procedure that I have to pass a lot of info to and crunch a bunch of tables together and it spits back a lot of information.
This is a fairly time consuming process, upwards of 2 minutes. Right now, I'm getting time-out's in my code because it takes so long. The information is easily broken down into it's respective series so that I can just ask for that series and get that back. This should work [haven't implemented it yet], but would still force me to have a "Loading..." sitting there for the entire time.

All this leads me to try multi-threading it to send each 'chunk' and have the each process add its series to the chart and when they are all done, then draw the chart. This should reduce the time substantially... This may be more of a programing question, but I am unable to get it to work.

I have used an example [lost it for the moment] where I used the ThreadPool, stored some data, then when all threads were done, added displayed the data. This worked in my command line example, but when implemented trying to create DataSeries objects as my 'data' - it didn't display any data.


I guess my question - since I'm not good at providing examples of what I've done at the moment (0_0); Does anyone have an example I could look at of using multiple threads to pull and store data that is then added to the chart and displayed.

Thanks

P.S. - I'm fairly new at Silverlight and multi-threading, so there may be something 'simple' that I'm unaware of.

No answers yet. Maybe you can help?

Tags
Chart
Asked by
Baatezu
Top achievements
Rank 2
Share this question
or