barrel_design_bql (barrel_design v0.1.0)
View SourceThe view BQL source: FROM view(design', 'view'[, group_level => N | reduce => true]) AS v'.
Map rows are {id, key, value}, grouped rows {key, value}. Rows come in key order, so ORDER BY v.key streams. Conditions on v.key narrow the scan (barrel_design_pushdown). Query options freshness, authorize and max_scan pass through to barrel_design:query/3, with the deadline BQL fixed for the call (the view's read_timeout_ms by default). Pages read by a fold are pinned and carry a page_start; a page cut by the deadline carries the rows it finished, timeout => true and its continuation.
Summary
Functions
The view's own read timeout, when BQL is given none.
The read is over: drop the cursor its pages were pinned under.