@nivaro/sdk 0.1.11 → 0.1.12
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.
- package/README.md +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1669,6 +1669,8 @@ const { data: rows, cached, executed_at } = await nivaro.request(
|
|
|
1669
1669
|
|
|
1670
1670
|
#### Example: Defining a custom query
|
|
1671
1671
|
|
|
1672
|
+
Two operator switches live on the query editor: "Warm daily at 06:00" (#41) flags the query for the query-cache-warmers cron, which pre-runs it with default parameters so the first report of the morning hits a warm Redis result; and "Last slow plan" (#90) loads the execution plan captured the last time a saved run of the query took longer than CUSTOM_QUERY_SLOW_PLAN_MS (5 s default) on this replica — no re-run needed to see why it was slow. API: GET /custom-queries/:id/last-plan.
|
|
1673
|
+
|
|
1672
1674
|
In the admin UI at `/custom-queries`, create a query:
|
|
1673
1675
|
|
|
1674
1676
|
```typescript
|
package/package.json
CHANGED