@lightdash/cli 3.352.0 → 3.353.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -203,7 +203,7 @@ Entries under `required_filters` / `default_filters` use the SDK `Filter` shape
203
203
 
204
204
  ### Understanding data grain
205
205
 
206
- When designing queries, consider the model's grain — what combination of dimensions produces one unique row. If the grain includes dimensions you aren't selecting, you may need filters to avoid duplicates. Estimate row counts from the grain to set appropriate `.limit()` values.
206
+ When designing queries, consider the model's grain — what combination of dimensions produces one unique row. If the grain includes dimensions you aren't selecting, you may need filters to avoid duplicates. Estimate row counts from the grain to set appropriate `.limit()` values. Keep limits close to what the view renders — see [Table and query performance](#table-and-query-performance).
207
207
 
208
208
  ### Snapshot and point-in-time metrics
209
209
 
@@ -1338,6 +1338,7 @@ Treat Safari/WebKit as the constrained target for layout-heavy apps. Test dense
1338
1338
  - **Bound data-derived columns.** Pivot-style tables that derive columns from dates, categories, or other result values must cap the rendered window. Paginate the column range or virtualize it horizontally; never render an unbounded `dates.map(...)` or equivalent column set.
1339
1339
  - **Keep sticky positioning to headers.** Never apply `position: sticky` to body cells. If a pinned first column is essential, render it as a separate fixed pane synchronized with the scrollable data pane.
1340
1340
  - **Virtualize individual rows, not multi-row groups.** For large tables, avoid mounting virtualized rows inside one shared `<table>` layout where scroll-driven row changes can relayout the whole table. Prefer block or grid rows with fixed column widths, and make each virtual item one row rather than a group containing many rows and cells.
1341
+ - **Load only the rows the view shows.** A query resolves once every row up to its `.limit()` has loaded, so a limit in the tens of thousands delays the first render by seconds. Aggregate, filter and sort in the query and load a top-N or one screen of rows; never raise `.limit()` to fetch a whole table for client-side grouping, filtering or search. For full exports use `downloadResults({ limit: 'all' })`, which does not load rows into the app.
1341
1342
  - **Batch filter-driven queries.** When a control change would refetch multiple queries, debounce the committed filter value or require an Apply action. Do not fire the full query fan-out on every date, granularity, or filter input change.
1342
1343
 
1343
1344
  ### Resizable panels
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightdash/cli",
3
- "version": "3.352.0",
3
+ "version": "3.353.1",
4
4
  "description": "Lightdash CLI tool",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -22,8 +22,8 @@
22
22
  "@actions/core": "1.11.1",
23
23
  "@aws-sdk/credential-providers": "3.995.0",
24
24
  "@casl/ability": "6.8.0",
25
- "@lightdash/common": "3.352.0",
26
- "@lightdash/warehouses": "3.352.0",
25
+ "@lightdash/common": "3.353.1",
26
+ "@lightdash/warehouses": "3.353.1",
27
27
  "@sidvind/better-ajv-errors": "7.0.0",
28
28
  "@types/columnify": "1.5.1",
29
29
  "ajv": "8.18.0",