Server-Side Pivot Delegation
Lets a data source compute pivot results on the server. WarGrid sends a documented pivot request (zones, filters, sorts, the group path being expanded) and renders the returned groups and result columns lazily. This removes the client row limits for very large datasets.
Planned. This page shows the specification from issue #198. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
Mock server running in the page (simulated latency) that answers pivot requests from a 2M-row generated dataset.
Expected behavior
Expanding a group sends a request for that path only. Result columns come from the response. Errors show a retry row inside the affected group.
Planned API surface
dataSource.getPivotRows()PivotRequestPivotResponsePivotResponse.resultColumnspivot.serverSiderefreshPivotServer()Acceptance criteria
- The PivotRequest schema is documented and versioned. (pending)
- Only the visible or expanded group paths are requested. (pending)
- Drill-down in server mode calls a separate getPivotSourceRows() request. (pending)
- Totals are provided by the server. The client does not recompute them. (pending)