Skip to content

Commit d97d5f1

Browse files
committed
better memory management
1 parent 6937938 commit d97d5f1

37 files changed

Lines changed: 31334 additions & 2906 deletions

File tree

.codex/skills/mvnf/SKILL.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,14 @@ If the test run fails, it prints the list of Surefire/Failsafe report files unde
3030
- `--module <path>`: Force the module when the test class name exists in multiple modules.
3131
- `--it`: Treat the selector as an integration test and pass it via `-Dit.test=...`.
3232
- `--no-offline`: Run Maven commands without `-o` (useful if offline resolution fails).
33+
34+
## LMDB regression speedup note
35+
36+
For LMDB theme regression/snapshot tests, enable persistent prepared stores to skip repeated dataset rebuilds:
37+
38+
- `-Drdf4j.lmdb.themeRegression.persistentStore.enabled=true`
39+
- Optional root override: `-Drdf4j.lmdb.themeRegression.persistentStore.root=persistent-lmdb-theme-store`
40+
41+
`mvnf.py` does not forward arbitrary `-D` flags today, so use direct Maven for this mode, for example:
42+
43+
- `mvn -o -Dmaven.repo.local=.m2_repo -pl core/sail/lmdb -Dtest=LmdbThemeQueryRegressionTest#socialMediaFiveCycleInterleavesValuesWithFollowsEdges -Drdf4j.lmdb.themeRegression.persistentStore.enabled=true test`

.codex/skills/query-plan-snapshot-cli/SKILL.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,26 @@ Interpretation:
5757

5858
Use this path when the goal is optimizer-loop work: find the fastest known plan/query for a theme/query, then compare new runs back to that history before touching production logic.
5959

60+
## Fast regression test loop (persistent LMDB theme stores)
61+
62+
Theme regression/snapshot tests in `core/sail/lmdb` now support reusing a prepared LMDB store across runs.
63+
64+
- Enable persistent reuse:
65+
- `-Drdf4j.lmdb.themeRegression.persistentStore.enabled=true`
66+
- Optional custom root directory:
67+
- `-Drdf4j.lmdb.themeRegression.persistentStore.root=persistent-lmdb-theme-store`
68+
- Default root directory:
69+
- `persistent-lmdb-theme-store`
70+
71+
Behavior:
72+
73+
- If the store has expected `triples/data.mdb` and `values/data.mdb` sizes (from `expected-db-file-sizes.properties`), tests reuse it and skip rebuild/ingest.
74+
- If sizes mismatch or the marker file is missing/invalid, tests rebuild the store, then refresh the expected-size file.
75+
76+
Example focused run:
77+
78+
- `mvn -o -Dmaven.repo.local=.m2_repo -pl core/sail/lmdb -Dtest=LmdbThemeQueryRegressionTest#socialMediaFiveCycleInterleavesValuesWithFollowsEdges -Drdf4j.lmdb.themeRegression.persistentStore.enabled=true test`
79+
6080
## Snapshot diff workflow
6181

6282
Use this when you need semantic plan diffs between two controlled captures of the same query.

.gitignore

Lines changed: 19470 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)