Skip to content

Defer SqliteCacheRequestsDocumentLoader cache file creation until first load - #303

Open
anatoly-scherbakov wants to merge 3 commits into
choice-by-type-document-loaderfrom
sqlite-cache-lazy-init
Open

Defer SqliteCacheRequestsDocumentLoader cache file creation until first load#303
anatoly-scherbakov wants to merge 3 commits into
choice-by-type-document-loaderfrom
sqlite-cache-lazy-init

Conversation

@anatoly-scherbakov

@anatoly-scherbakov anatoly-scherbakov commented Jul 26, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Create the SQLite HTTP cache file when the first document is loaded, not when SqliteCacheRequestsDocumentLoader is constructed.
  • Keeps local-only CLI / library use from touching the cache path until an HTTP load happens.

Stack

Base: choice-by-type-document-loader (#304).
Next: command-line-interface (#305).

Test plan

  • pytest tests/test_sqlite_cache_requests_document_loader.py
  • CI green

@github-actions

github-actions Bot commented Jul 26, 2026

Copy link
Copy Markdown

@anatoly-scherbakov
anatoly-scherbakov changed the base branch from master to choice-by-type-document-loader July 26, 2026 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant