Back to results for “Collections”
.NET MAUI › Advanced Data Binding & Collections

How do you efficiently update large observable collections?

Advanced

Answer

ObservableCollection raises a change event per item, which is costly for bulk updates. For large refreshes, replace the collection reference (and notify), use a batching/optimized ObservableRangeCollection (from the toolkit) with AddRange, or suspend notifications. Also prefer incremental loading for very large data.
// ObservableRangeCollection (MAUI Community Toolkit)
Items.AddRange(newBatch);   // one notification instead of N
Real-world example Loading 500 rows via AddRange updates the CollectionView once instead of triggering 500 layout passes.

Common follow-ups: Why is per-item notification slow? | What is incremental loading?