Archived
deploy webservice static-file routing for docsite folder URLs, per-instance step-cache db, and constant-height panel title bars.
This commit is contained in:
@@ -203,7 +203,9 @@ MillingStepLuggage data.</p>
|
||||
<h4 class="section">Parameters</h4>
|
||||
<dl class="parameters">
|
||||
<dt><code>databasePath</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
|
||||
<dd><p>The path to the SQLite database file. If null, uses in-memory database.</p>
|
||||
<dd><p>The path to the SQLite database file. If null, uses the
|
||||
default per-user path (<code>LocalApplicationData/HiNC/StepCache/step_cache.db</code>) —
|
||||
callers hosting several instances under one account must pass a per-instance path.</p>
|
||||
</dd>
|
||||
<dt><code>logger</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.ilogger">ILogger</a></dt>
|
||||
<dd><p>Optional logger instance.</p>
|
||||
@@ -527,7 +529,7 @@ MillingStepLuggage data.</p>
|
||||
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Resets the database by clearing all data.</p>
|
||||
<div class="markdown level1 summary"><p>Resets the storage by deleting and recreating the database file.</p>
|
||||
</div>
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
@@ -543,6 +545,16 @@ MillingStepLuggage data.</p>
|
||||
|
||||
|
||||
|
||||
<h4 class="section" id="Hi_SqliteUtils_SqliteStepStorage_Reset_remarks">Remarks</h4>
|
||||
<div class="markdown level1 remarks"><p>Delete-and-recreate instead of <code>DELETE FROM</code>: the per-run cache grows to
|
||||
many GB of step blobs and SQLite never returns freed pages to the file system
|
||||
(<code>VACUUM</code> would rewrite the whole file), so recreating the file is both
|
||||
the fastest wipe and the only practical space reclaim. Callers drain the
|
||||
luggage writer first (<code>ResetStateAndClStrip</code> → <code>WaitAll</code>) and the
|
||||
file is per-instance, so no other writer can be mid-batch. Falls back to the
|
||||
in-place table wipe when the file is still held open (e.g. a concurrent
|
||||
reader mid-query keeps the delete off on Windows).</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user