dojo - Using jsonRest with filteringSelect widget -


i start working onchanging widgets can rebuild using jsonrest rather memory, filteringselect , dgrid in app.
after fixed filteringselect, replaced memory jsonrest , tested works well, tried use store/cache it. testing showed caching not happening, , when searched web, got someone's answer:

http://dojo-toolkit.33424.n3.nabble.com/how-to-use-filteringselect-with-a-jsonrest-store-and-a-cache-store-td3994386.html

this issue tells cache not working filteringselect, need use request. on other hand, "request" requests data it's not option.

can give right answer: 1. cache work jsonrest on filteringselect? 2. can use dgrid jsonrest , cache also?

thanks

while jsonrest can used cache fine (regardless of widget consumes it), important thing consider (which mailing list post points out) dojo/store/cache not cache query calls store, get calls, since query calls can include variety of range, filter, , sort parameters. don't think you'd effect out of using cache you're expecting.

if service doesn't have large number of records, option use dojo-smore's requestmemory store, middle ground between memory , jsonrest - requests full data set once (though request store created), stores entire set in memory query , get calls.


Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -