What Is The Importance of Caching Webparts in SharePoint?

I have created a few custom webparts that retrieves list and user profile information.

The number of records I am outputting into my webpart could be in thier thousands. Is there a particular need for me to cache these results?

If I don't use caching will this create a massive performance hit or does SharePoint take care of this to a certain extent for me?
R1ND3RAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ImaCircularSawTechnical LeadCommented:
Depending on how you've coded the webpart, each time the page is requested the list will be collated.  This will of course require resources to do and should the hardware available not be up to the job you'll suffer with performance lagging.

I would recommend that as part of performance testing your webpart or should you notice slowdown you could implement caching of the webpart.  You might want to also consider how up-to-date you require the information in the webpart to be.  As your farm grows and resources are required elsewhere and if appropriate you could cache the webpart to free up resources for other parts of your farm.

It's hard to give an answer specific to your situation without knowing and performance figures but I hope this helps.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
R1ND3RAuthor Commented:
Thanks for your reply.

I will carry out some performance tests to measure speed. But I think I will just cache my webparts to be on the safe side since the number of records returned is bound to grow over time.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SharePoint

From novice to tech pro — start learning today.