New Posts New Posts RSS Feed: Why does MEV mark the server as busy
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Why does MEV mark the server as busy

 Post Reply Post Reply
Author
skingaby View Drop Down
DevForce MVP
DevForce MVP
Avatar

Joined: 23-Apr-2008
Location: United States
Posts: 146
Post Options Post Options   Quote skingaby Quote  Post ReplyReply Direct Link To This Post Topic: Why does MEV mark the server as busy
    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!
Back to Top
WardBell View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 31-Mar-2009
Location: Emeryville, CA,
Posts: 338
Post Options Post Options   Quote WardBell Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
skingaby View Drop Down
DevForce MVP
DevForce MVP
Avatar

Joined: 23-Apr-2008
Location: United States
Posts: 146
Post Options Post Options   Quote skingaby Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
WardBell View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 31-Mar-2009
Location: Emeryville, CA,
Posts: 338
Post Options Post Options   Quote WardBell Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
skingaby View Drop Down
DevForce MVP
DevForce MVP
Avatar

Joined: 23-Apr-2008
Location: United States
Posts: 146
Post Options Post Options   Quote skingaby Quote  Post ReplyReply Direct Link To This Post Posted: 24-Jul-2009 at 8:02am
Thanks! Those classes will be VERY helpful.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down