Skip to content

[Redence verify] Query optimization — add an index + optimize a hot Drizzle query #109

Description

@PAMulligan

Redence capability: Query optimization (Database)

Repo: Nerva. Stack: Drizzle ORM, PostgreSQL.

Substantive change: optimize a real query path — e.g. replace an N+1 access pattern with a single join/inArray query, and add the supporting index via a Drizzle migration. Show the before/after in the PR description (and ideally an EXPLAIN note). Add a test asserting correct results. The diff must change real query + schema code.

Done when: optimized query + index migration + test merged to main, checks green. Include the current Redence proof token (Query optimization verify page) in the commit message.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions