mirror of
https://ghproxy.cflmy.top/https://github.com/deepseek-ai/deepseek-harness.git
synced 2026-11-30 00:59:36 +08:00
* feat(session): archive idle SQLite Sessions and add on-demand store compaction * fix(session): preserve derived views on v2-to-v3 upgrade and harden cold restore races * feat(session): default coldAfterDays to 30 and skip set-aside unreadable segments * fix(session): clear cancelled warm entries and recheck cold state under write lease * refactor(session): keep compactStorage internal to dsh-session-persistence-sqlite
5 lines
383 B
SQL
5 lines
383 B
SQL
-- Reads the next stored events of the given types after a cursor, in storage order.
|
|
-- Binds: event_no cursor, a JSON array of event types, the maximum number of rows.
|
|
SELECT event_no, segment_id, seq, type, time, surface_op, source_seqs, ignorable, codec, data FROM events
|
|
WHERE event_no > ? AND codec != 254 AND type IN (SELECT value FROM json_each(?)) ORDER BY event_no LIMIT ?;
|