Quantcast
Channel: Discussion Forum > Connect Data Services
Viewing all articles
Browse latest Browse all 2504

Where can I find documentation on using cache with a database query? (1 Comment)

$
0
0

Topic by Carlton Davison

Content

I have a single database query (ROQL::query .. SELECT) which returns a large dataset (~1000 rows). The results will only change every few days. Should I cache the query and if so what is the best practice method?

I have seen use of checkCache($cacheKey) and setCache($cacheKey, $queryResult) in models, etc but cannot find any documentation about their proper use. Can someone please direct me to the right documentation. 

(I have also seen/used PersistentReadThroughCache for caching external files but assume this is not appropriate for database queries.) 

..Carl.

 

Version

August 2012

Viewing all articles
Browse latest Browse all 2504

Trending Articles