Home

Optimization

SharePoint CSOM: Prevent …

TL;DR Problem: I was building an API that was blindly updating SharePoint list items, even when users didn’t actually change anything. Classic “save happy” user behavior was triggering thousands of pointless API calls. Solution: Built smart field change detection that asks …

SharePoint's Server-Side …

TL;DR Problem: Client making 90,000 CSOM calls/month, 88% were redundant EnsureUser operations for users already on the site. Solution: Use FieldUserValue.FromUser() optimistically with ExceptionHandlingScope for server-side try-catch logic. Impact: 75-85% reduction in API calls (90,000 → …

CSOM Performance …

The Problem: One-by-One Operations Kill Performance Following up on my previous post about DevProxy and throttling testing, there’s another critical performance issue I see regularly in SharePoint CSOM code: executing operations one by one instead of batching them. Consider this common pattern …