Print Page | Close Window

Why does MEV mark the server as busy

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2009
Forum Discription: For .NET 3.5
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=1385
Printed Date: 22-Sep-2025 at 4:22am


Topic: Why does MEV mark the server as busy
Posted By: skingaby
Subject: Why does MEV mark the server as busy
Date Posted: 22-Jul-2009 at 1:00pm
When Mev is performing an async operation, the BasicPersistenceService class has a FetchingHandler that sets the service to Busy.
Why was this done? Is there a problem with executing multiple async queries simultaneously?
Thanks!



Replies:
Posted By: WardBell
Date Posted: 22-Jul-2009 at 6:52pm
Nope. No problem at all. I just didn't want to have to deal with coordinating them and worrying about async queries launched after other async queries. Totally do-able. Just lazy.


Posted By: skingaby
Date Posted: 22-Jul-2009 at 7:32pm
That definitely sounds like as good a reason as any. We have a UI that needs to load the collections for a bunch of combo boxes so we thought it would be best to kick off all those async queries as the scene loads.


Posted By: WardBell
Date Posted: 22-Jul-2009 at 8:28pm
Be SURE to checkout the DevForce AsyncParallelTask class which helps you stack up a bunch of tasks (such as queries) and run them together. You supply a final callback. Let it do the bookkeeping.
 
The AsyncSerialTask is great for chaining a sequence of tasks, each of which depends upon the successful completion of the prior task.


Posted By: skingaby
Date Posted: 24-Jul-2009 at 8:02am
Thanks! Those classes will be VERY helpful.



Print Page | Close Window