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.
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.
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