Blog refresh: B-tree indexes with Prisma ORM (series part 2) for Prisma 7 + Prisma Postgres#8029
Conversation
…Postgres Full walkthrough rebuilt: MySQL/Docker companion repo replaced with a self-contained local Prisma Postgres setup, removed $use middleware in favor of a client extension, all commands and numbers verified live on Prisma 7.8.0 + Postgres 17 (66.5ms seq scan -> 0.8ms bitmap index scan over 500k rows). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
80x claim quantified in intro/meta, how-to heading matches query phrasing, FAQ accordions added (server-rendered, verified in HTML), descriptive alt on the index diagram, Prisma ORM product link. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Schema-as-code framing on @@index (one source of truth for teams and agents), local-to-production Prisma Postgres path in summary, restrained Prisma Next pointer with EA stage discipline. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughThis PR rewrites a blog article on query performance and indexing, updating it to reflect Prisma ORM 7 workflows. Changes include new frontmatter metadata, a modernized Prisma Postgres setup using ChangesIndexing article rewrite
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Poem A rabbit hopped through Postgres trees, 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
Refreshes the second post of the query-performance series (44k impressions/90d, position 6.7, 46 months old) per the blog refresh program: slug kept, original author kept, honest updatedAt.
Content changes
npx prisma dev; only prerequisite is Node.js.prisma.$use()middleware (removed in v7) replaced with a$extendsquery extension for timing;$on('query')event logging shown as the alternative.urlin the schema datasource,prisma.config.tscarries the connection, explicit dotenv loading.@@index, local-to-production Prisma Postgres path, one Prisma Next pointer with Early Access stage discipline.Verification
Every command and number executed live on Prisma 7.8.0 + PostgreSQL 17 (local Prisma Postgres):
@@index([firstName])(~80x), full EXPLAIN ANALYZE output in the post from the real run.@@index([firstName(sort: Desc), lastName])verified via pg_indexes DDL.Known limitation surfaced during verification (also noted in PR #8027):
prisma migrate devfails with P1017 against the localprisma devPGlite server on 7.8.0; the post usesdb pushfor the local loop and references migrate for production workflows.🤖 Generated with Claude Code
Summary by CodeRabbit