dirsql 0.4.31 → 0.4.33
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/docs/reference/cli.md +18 -0
- package/docs/reference/config.md +5 -0
- package/docs/reference/sdk.md +4 -0
- package/package.json +6 -6
package/docs/reference/cli.md
CHANGED
|
@@ -483,6 +483,24 @@ dirsql: indexed 41231 files in 3m12s
|
|
|
483
483
|
|
|
484
484
|
stdout is untouched — it carries the query result and nothing else.
|
|
485
485
|
|
|
486
|
+
A query gets the same treatment when it calls a
|
|
487
|
+
[worker-backed function](./config.md#dirsql-function). Those cost one round
|
|
488
|
+
trip per row, so a query that calls one over a whole corpus is the slowest
|
|
489
|
+
thing dirsql does:
|
|
490
|
+
|
|
491
|
+
```
|
|
492
|
+
dirsql: running 9204 worker calls
|
|
493
|
+
```
|
|
494
|
+
|
|
495
|
+
and, when the query ends:
|
|
496
|
+
|
|
497
|
+
```
|
|
498
|
+
dirsql: ran 41231 worker calls in 2m41s
|
|
499
|
+
```
|
|
500
|
+
|
|
501
|
+
A query that calls no worker prints nothing, whatever the setting — the
|
|
502
|
+
reporting only ever speaks when there is something to report.
|
|
503
|
+
|
|
486
504
|
By default this is **terminal-only, and only for work slow enough to wonder
|
|
487
505
|
about**: a phase that finishes in under half a second prints nothing at all,
|
|
488
506
|
and a run whose stderr is a pipe or a file prints nothing regardless of how
|
package/docs/reference/config.md
CHANGED
|
@@ -133,6 +133,11 @@ process alive for the rest of the invocation, sending it every subsequent
|
|
|
133
133
|
call — one process total, never one per row or per file. The worker is torn
|
|
134
134
|
down when the invocation ends.
|
|
135
135
|
|
|
136
|
+
A query paying per-row round trips reports them on stderr while it runs
|
|
137
|
+
(`dirsql: running 9204 worker calls`), on the same terms as every other
|
|
138
|
+
[progress line](./cli.md#progress-reporting): terminal-only by default, silent
|
|
139
|
+
on a pipe, and gone before the result is printed.
|
|
140
|
+
|
|
136
141
|
The `timeout` bounds each **round-trip call**, not the query: a query that
|
|
137
142
|
calls the function on 10 000 rows is 10 000 individually timed calls. A call
|
|
138
143
|
that times out, or a worker that crashes or closes its pipes, fails the query
|
package/docs/reference/sdk.md
CHANGED
|
@@ -408,6 +408,10 @@ one summary of what each cost:
|
|
|
408
408
|
dirsql: indexed 41231 files in 3m12s
|
|
409
409
|
```
|
|
410
410
|
|
|
411
|
+
A `query` that calls a worker-backed function is reported the same way, as a
|
|
412
|
+
running count of round trips (`dirsql: running 9204 worker calls`) — the shape
|
|
413
|
+
`dirsql-plugin-embeddings` produces when it embeds a corpus one row at a time.
|
|
414
|
+
|
|
411
415
|
This is terminal-only by default, and only for a phase that runs longer than
|
|
412
416
|
half a second — a program whose stderr is a pipe, a file, or a log collector
|
|
413
417
|
sees nothing, whatever the scan costs. Set `DIRSQL_PROGRESS=never` to
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dirsql",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.33",
|
|
4
4
|
"description": "Ephemeral SQL index over a local directory",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "https://github.com/thekevinscott/dirsql",
|
|
@@ -213,10 +213,10 @@
|
|
|
213
213
|
]
|
|
214
214
|
},
|
|
215
215
|
"optionalDependencies": {
|
|
216
|
-
"@dirsql/lib-linux-x64-gnu": "0.4.
|
|
217
|
-
"@dirsql/lib-linux-arm64-gnu": "0.4.
|
|
218
|
-
"@dirsql/lib-darwin-x64": "0.4.
|
|
219
|
-
"@dirsql/lib-darwin-arm64": "0.4.
|
|
220
|
-
"@dirsql/lib-win32-x64-msvc": "0.4.
|
|
216
|
+
"@dirsql/lib-linux-x64-gnu": "0.4.33",
|
|
217
|
+
"@dirsql/lib-linux-arm64-gnu": "0.4.33",
|
|
218
|
+
"@dirsql/lib-darwin-x64": "0.4.33",
|
|
219
|
+
"@dirsql/lib-darwin-arm64": "0.4.33",
|
|
220
|
+
"@dirsql/lib-win32-x64-msvc": "0.4.33"
|
|
221
221
|
}
|
|
222
222
|
}
|