Query Caching

9 posts, 1 answers
  1. Steve
    Steve avatar
    1851 posts
    Member since:
    Dec 2008

    Posted 22 Aug 2011 Link to this post

    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.
  2. Rosen
    Admin
    Rosen avatar
    3237 posts

    Posted 23 Aug 2011 Link to this post

    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!
  3. Kendo UI is VS 2017 Ready
  4. Steve
    Steve avatar
    1851 posts
    Member since:
    Dec 2008

    Posted 23 Aug 2011 Link to this post

    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?...?
  5. Answer
    Rosen
    Admin
    Rosen avatar
    3237 posts

    Posted 23 Aug 2011 Link to this post

    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!
  6. Steve
    Steve avatar
    1851 posts
    Member since:
    Dec 2008

    Posted 23 Aug 2011 Link to this post

    Fantastic, hopefully rendered this extra plugin useless for me! :) (the google one)
  7. Steve
    Steve avatar
    1851 posts
    Member since:
    Dec 2008

    Posted 23 Aug 2011 Link to this post

    Where's the documentation on this?
  8. Rosen
    Admin
    Rosen avatar
    3237 posts

    Posted 23 Aug 2011 Link to this post

    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!
  9. Salvador
    Salvador avatar
    2 posts
    Member since:
    Feb 2012

    Posted 04 May 2012 Link to this post

    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
  10. d
    d avatar
    1 posts
    Member since:
    Mar 2013

    Posted 21 Mar 2013 Link to this post

    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.
Back to Top
Kendo UI is VS 2017 Ready