mirror of
https://github.com/openai/codex.git
synced 2026-10-19 17:28:46 +00:00
Add a partial index for agent message board root posts (#47063)
Create `posts_roots_created` on `(board, channel, timestamp, seq)` for posts where `id = root` in the local SQLite schema. GitOrigin-RevId: 4c40e0d853deaa3ab6b6303525870e3b7bfc3b14
This commit is contained in:
@@ -73,6 +73,7 @@ CREATE TABLE IF NOT EXISTS posts (
|
||||
);
|
||||
CREATE INDEX IF NOT EXISTS posts_board_channel ON posts(board,channel,seq);
|
||||
CREATE INDEX IF NOT EXISTS posts_board_channel_timestamp ON posts(board,channel,timestamp,seq);
|
||||
CREATE INDEX IF NOT EXISTS posts_roots_created ON posts(board,channel,timestamp,seq) WHERE id=root;
|
||||
CREATE INDEX IF NOT EXISTS posts_board_root ON posts(board,root,seq);
|
||||
CREATE INDEX IF NOT EXISTS posts_board_root_timestamp ON posts(board,root,timestamp,seq);
|
||||
CREATE INDEX IF NOT EXISTS posts_board_timestamp ON posts(board,timestamp,seq);
|
||||
|
||||
Reference in New Issue
Block a user