This is a migrated thread and some comments may be shown as answers.

Query Caching

8 Answers 433 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 2
Veteran
Steve asked on 23 Aug 2011, 01:46 AM
I've been heavily relying on the following: http://code.google.com/p/jquery-jsonp/

Can the Kendo DS do this as well by any chance?  The performance gained from the cache is AMAZING.

8 Answers, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 23 Aug 2011, 07:36 AM
Hello Steve,

Indeed, our data source provides means for caching, it can be enabled on transport:

var dataSource = new kendo.data.DataSource({
     transport: {
        cache: "inmemory"
       //...
       }
     }
 });

Currently only available option is in-memory cache.All the best,
Rosen
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Steve
Top achievements
Rank 2
Veteran
answered on 23 Aug 2011, 02:20 PM
Can you elaborate on how the caching mechanism works?

...does it store query results and just fetch from local if the query is the same?...cleared on postback?...?
0
Accepted
Rosen
Telerik team
answered on 23 Aug 2011, 02:27 PM
Hello Steve,

Indeed, the query arguments are used as key, if this key matches data is extracted from the cache and server is not requested.
The cache will be cleared if page is refreshed.

All the best,
Rosen
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Steve
Top achievements
Rank 2
Veteran
answered on 23 Aug 2011, 02:29 PM
Fantastic, hopefully rendered this extra plugin useless for me! :) (the google one)
0
Steve
Top achievements
Rank 2
Veteran
answered on 23 Aug 2011, 02:33 PM
Where's the documentation on this?
0
Rosen
Telerik team
answered on 23 Aug 2011, 02:39 PM
Hello Steve,

I'm afraid that currently there is not documentation on this exact property. Please excuse us for the inconvenience.

All the best,
Rosen
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Salvador
Top achievements
Rank 1
answered on 04 May 2012, 09:57 AM
Hi,

I'm having problems with datasource read transport. I need to fetch data on real-time, when it fetches data from database it says it's from the cache, I try to debug it with google chrome. I need to disable caching. Could you please help me?

Kidd Tapel
0
d
Top achievements
Rank 1
answered on 21 Mar 2013, 03:56 PM
This is late, but I thought I'd post it anyway.

Salvador, to disable cacheing, set cache: false. See here: http://docs.kendoui.com/api/framework/datasource#configuration-transport.read.cache-Boolean

You can do this per specfic CRUD operation within transport. Setting cache to false will also append a timestamp parameter to your request.
Tags
Data Source
Asked by
Steve
Top achievements
Rank 2
Veteran
Answers by
Rosen
Telerik team
Steve
Top achievements
Rank 2
Veteran
Salvador
Top achievements
Rank 1
d
Top achievements
Rank 1
Share this question
or