New Posts New Posts RSS Feed: DatasourceOnly vs InvokeServerMethodAsync
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

DatasourceOnly vs InvokeServerMethodAsync

 Post Reply Post Reply
*Calsy View Drop Down

Joined: 02-Feb-2009
Location: Australia
Posts: 69
Post Options Post Options   Quote *Calsy Quote  Post ReplyReply Direct Link To This Post Topic: DatasourceOnly vs InvokeServerMethodAsync
    Posted: 23-Jan-2010 at 2:44pm
Hi, Ive got listings in my app that require that the data is always retrieved fresh from the database so the latest data is shown. I was doing perf testing this morning and found if i do a normal executequeryasync with querystrategy of datasourceonly the data took 4.5 seconds to retrieve. Whereas if i took the same call to a InvokeServerMethodAsync method and compile the data at the server and send the cache back and retrieve the data than from that cache it cuts the time back to 2.5 seconds to retrieve (nearly half).
Is there any reason why i shouldnt do all my data calls that require datasourceonly via InvokeServerMethodAsync methods? It seems a little round about, but if its going to cut my data calls by half than its a winner in my books.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down