Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    clearing the datasource cache

    Is there any way to manually force a server-based datasource clear its cache? We would like to have more fine-grained control of the amount of data living in the browser.

    -pf

    #2
    Try to be more specific.

    Are you talking about data held by a component (ResultSet / ResultTree)?

    Are you using DataSource.cacheAllData?

    What specifically needs to happen to the data - individual record updates, drop the whole thing, something else?

    How did the data become stale?

    Comment


      #3
      The data is being held by a ResultSet. We are not using DataSource.cacheAllData.

      We would like to drop the whole dataset globally across all widgets.

      A bit more about the app:
      Our end users are constantly updating subsets of a large dataset (say 500K records in the DB). Each row has a large text field. The ResultSet for the grid is typically holding about 20 records at a time. But the data is constantly changing based on different fetch criteria.

      We are assuming that the datasource itself maintains the global cache coming from the server and the the ResultSet only holds onto the data relative to a specific fetch. Please correct us if this is not true.

      Thanks,
      -p

      Comment


        #4
        There is no cache at the DataSource level unless you set cacheAllData.

        The ResultSet docs explain its caching behavior in detail - when you say "data relative to a specific fetch" it sounds like you probably don't have the right idea and should review these docs.

        See DataSource.updateCaches() for causing all ResultSets to update or drop cache.

        Comment

        Working...
        X