Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11508

Caching in SharePoint 2010 - Correct DataType of stored object

$
0
0

Hi All,

I am developing a custom application in SharePoint 2010 where a list has 10,000 items.

I want to cache this list and provide data by querying the cache object.

As per this MSDN article:http://msdn.microsoft.com/en-us/library/office/ee558270(v=office.14).aspx

It is better to cache a DataTable object of the SPListItemCollection instead of the SPListItemCollection itself because the latter has an SPWeb object internally which is not thread safe.

I have 3 questions:

1. Is caching the DataTable contents a recommended option?

2. If I cache the DataTable and read from it, I will be using traditional SQL type queries on the DataTable with 1% use for CAML query(I would probably be limiting the use of CAML for initial storage from List to cache in that case).

3. Is there a better way to handle large data in cache for SharePoint 2010?

Please do reply as I feel I am missing something over here.


Computer is a box with magic called software.



Viewing all articles
Browse latest Browse all 11508


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