Silverlight RIA Services DomainDataSource, relation between AutoLoad and RefreshInterval -


i'm having trouble understanding relation between domaindatasource.autoload , domaindatasource.refreshinterval.

if enable autoload given domaindatasource, server being queried repeatedly @ high rate... not want.

so set refreshinterval "00:00:10" (every 10 seconds right?) data not loaded @ all.

if set autoload true, value of refreshinterval not seem affect anything.

and there's loaddelay property, 1 seem related autoload, setting 10 seconds not slow down repeated queries server.

it gets worse because application i'm trying navigation based application , every time page gets loaded, more queries seem executed @ same time, when go different page within application.

i'm definatly doing wrong, can't figure out because fail understand specifics of these properties. read msdn docs, once didn't help.

i'm hope it's not vague of question.

msdn sheds light:

when autoload true, property change affecting load query automatically invoke load after specified loaddelay. examples of properties impact query pagesize , filteroperator. also, changes dependency object collections, such filterdescriptors , changes dependency properties on elements contained in collections, affect query , prompt automatic load. 

and refreshinterval

when non-zero timespan specified, load operation automatically invoked each time interval elapses, long canload true. when property set, timer starts, regardless of value of autoload property or whether load has been executed 

so sounds autoload , refreshinterval don't have direct relation @ all. 1 thing consider canload property, gets set false many things. may preventing refreshinterval working. canload gets set false if entity in domaincontext has pending changes, can happen without realizing @ times.

the real experts on dds members of ria services team. hang out on ria services forums lot more here, asking there might idea.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -