Skip to content

sequencerd: match integer keys with = instead of LIKE - #511

Open
cfremling wants to merge 1 commit into
mainfrom
fix/sequencer-db-integer-keys
Open

cfremling wants to merge 1 commit into
mainfrom
fix/sequencer-db-integer-keys

Conversation

@cfremling

Copy link
Copy Markdown
Collaborator

TargetInfo matched the integer keys with like (OBSERVATION_ID like :obsid, SET_ID like :setid), which casts the column and defeats the primary key. EXPLAIN gives type=ALL, 93102 rows, for both the SELECT and the UPDATE in update_state, so every target-state write took ~215 ms instead of ~1 ms. Changed to = in the four conditions; EXPLAIN becomes const/range on PRIMARY, 1 row, with int or string binds. SET_NAME like and STATE like are unchanged.

This slow write is what made the EXPOSE-bit race fixed in #485 hit every bias; each PR stands alone.

Rebuild, restart sequencerd. Tested on sky using branch cf/summit-20261030 on 2026-11-03.

Jira: PAL-164.

🤖 Generated with Claude Code

…n on every state update)

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-11-05T18:57:01.715923Z
We couldn’t complete this review. Comment @codex review to try again.
8c1e9d3 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

This branch has not been deployed

No deployments
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.

3 participants