Adding more than 1KB of data in the property bag SPWeb.AllProperties can cause High memory and CPU

Published May 01 2019 03:28 PM 88 Views
Microsoft

First published on TECHNET on Jun 06, 2012

This post is a contribution from Nishand Vasudevan, an escalation engineer with the SharePoint Developer Support team.

The property bag is intended for small properties, like configuration or other settings.  Accessing the property bag will require its own query so it comes with performance penalty.  The property bag won’t get initialized when SPWeb object instantiates when calling SPSite.OpenWeb().

%3CLINGO-SUB%20id%3D%22lingo-sub-509658%22%20slang%3D%22en-US%22%3EAdding%20more%20than%201KB%20of%20data%20in%20the%20property%20bag%20SPWeb.AllProperties%20can%20cause%20High%20memory%20and%20CPU%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-509658%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSTRONG%3E%20First%20published%20on%20TECHNET%20on%20Jun%2006%2C%202012%20%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EThis%20post%20is%20a%20contribution%20from%20Nishand%20Vasudevan%2C%20an%20escalation%20engineer%20with%20the%20SharePoint%20Developer%20Support%20team.%3C%2FP%3E%0A%3CP%3EThe%20property%20bag%20is%20intended%20for%20small%20properties%2C%20like%20configuration%20or%20other%20settings.%26nbsp%3B%20Accessing%20the%20property%20bag%20will%20require%20its%20own%20query%20so%20it%20comes%20with%20performance%20penalty.%26nbsp%3B%20The%20property%20bag%20won%E2%80%99t%20get%20initialized%20when%20SPWeb%20object%20instantiates%20when%20calling%20SPSite.OpenWeb().%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-509658%22%20slang%3D%22en-US%22%3E%3CP%3EFirst%20published%20on%20TECHNET%20on%20Jun%2006%2C%202012%20This%20post%20is%20a%20contribution%20from%20Nishand%20Vasudevan%2C%20an%20escalation%20engineer%20with%20the%20SharePoint%20Developer%20Support%20team.%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-509658%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESupport%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Co-Authors
Version history
Last update:
‎Apr 30 2021 12:39 PM
Updated by: