Implement raw file storage #6

Open
opened 2026-10-23 22:48:28 +00:00 by lichenblankie · 0 comments

Current search uses Sqlite FTS5. All pages and information are stored in a Sqlite database file. To align more clearly with Tinyweb values, migrate to raw file storage.

Proposal, use a build in-memory inverted index on startup. Use marshal for index persistence. Use BM25-lite for scoring. Detect file changes with os.stat() polling.

File structure:
~/.tinyweb/pages/
page1.txt
page2.txt
page3.txt
...


Synced from Codeberg issue #8 — opened by @fluffblankie on 2026-09-16.

Current search uses Sqlite FTS5. All pages and information are stored in a Sqlite database file. To align more clearly with Tinyweb values, migrate to raw file storage. Proposal, use a build in-memory inverted index on startup. Use marshal for index persistence. Use BM25-lite for scoring. Detect file changes with os.stat() polling. File structure: ~/.tinyweb/pages/ page1.txt page2.txt page3.txt ... --- *Synced from [Codeberg issue #8](https://codeberg.org/tinyweb/tinyweb/issues/8) — opened by @fluffblankie on 2026-09-16.* <!-- codeberg-issue: 8 -->
lichenblankie changed title from Raw file storage to Implement raw file storage 2026-10-25 18:42:09 +00:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lichenblankie/tinyweb#6
No description provided.