@lotics/app-sdk 0.47.0 → 0.47.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.
Files changed (2) hide show
  1. package/docs/queries.md +7 -0
  2. package/package.json +1 -1
package/docs/queries.md CHANGED
@@ -772,6 +772,13 @@ other shapes.)
772
772
  runtime filter) returning one row — never load-all-then-find in JS.
773
773
  9. **Expect and handle the three runtime outcomes**: a 400 with a message (surface it), the
774
774
  timeout 400 (narrow/simplify), and the 503 busy (retry after a moment).
775
+ 10. **One multi-key `group` beats N single-key group-bys over the same expensive source.**
776
+ Each declared query re-executes its whole `from` tree — a screen that groups one costly
777
+ union/join by N different dimensions as N queries pays for N full scans and can saturate
778
+ the server's concurrent-query gate (503 busy) on every load. Group by ALL the dimensions
779
+ at once (`by: [a, b, c, …]`) and fold each facet client-side by summing over the others:
780
+ `count` and `sum` fold exactly. `unique` does NOT fold across groups (the same value can
781
+ appear in many groups) — keep a separate query for each distinct-count you render.
775
782
 
776
783
  ---
777
784
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lotics/app-sdk",
3
- "version": "0.47.0",
3
+ "version": "0.47.1",
4
4
  "description": "Runtime SDK for Lotics custom-code apps — typed hooks, postMessage bridge, mount entry point",
5
5
  "type": "module",
6
6
  "exports": {