In-Memory Data (VecDataSource)
Overview
VecDataSource is the simplest data source — a Vec<RowRecord> stored
entirely in memory.
Creating
Or use the shorthand GridModel::new() which wraps a Vec<RowRecord>
in a VecDataSource automatically:
Properties
When to use
- Datasets up to ~100,000 rows
- Mutable data (direct editing without the patches layer)
- When you need to clone the data source
When NOT to use
- Very large datasets (millions of rows) — use
FnDataSourceinstead - Server-side data — use
PageCacheDataSource