Quantcast
Channel: SCN : Unanswered Discussions - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 5115

Insights to HANA's result cache

$
0
0

I'm wondering if there's any good documentation on using HANA's result cache? All I've found so far is this quite helpful SCN thread, but I'm hoping to get a bit more insight into the cache behavior.

 

My situation is that we have views that will query the views from another application (let's call it XYZ).  XYZ's views will return a list of items that the user has permission to see. The views are complex, slow, and not something we are willing to modify.  I was hoping that the result cache would help improve performance for these views; however, the cached results are being re-used across different user's sessions, which breaks the access control feature.

 

My idea is to use the "resultcache_white_list" configuration setting to enabled caching for a single calculation view.  This view will have an input parameter which is unique for each user's session (i.e. SESSION_USER variable) that will hopefully make the query unique as far as the cache is concerned.  In practice this seems to work, but I have trouble getting certain views to cache.

 

so some questions:

 

  • does this strategy for selective caching sound like a viable solution? any other recommendations?
  • is there documentation of how cache invalidation is implemented?
  • is there a trace for the resultcache that will give more insight than the M_RESULT_ENTRIES and M_CACHE table?
  • is there some attribute of a model that will prevent the model from being cached, apart from the resultcache_* configuration settings?

 

Thanks,

 

Charles


Viewing all articles
Browse latest Browse all 5115

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>