Skip to content

feat(blog): sunsetting optimise#7690

Merged
mhartington merged 5 commits intomainfrom
sunset-optimise-blog
Mar 23, 2026
Merged

feat(blog): sunsetting optimise#7690
mhartington merged 5 commits intomainfrom
sunset-optimise-blog

Conversation

@mhartington
Copy link
Member

@mhartington mhartington commented Mar 23, 2026

Summary by CodeRabbit

  • Documentation
    • Published a new blog post announcing the deprecation of Prisma Optimize and introducing Query Insights in Prisma Postgres.
    • Provided migration guidance with step-by-step uninstall instructions for Prisma Optimize users.
    • Added visuals (embedded dashboard GIF), explanatory sections, tags, and full post metadata to aid discovery and follow-through.

@vercel
Copy link

vercel bot commented Mar 23, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
blog Ready Ready Preview, Comment Mar 23, 2026 4:43pm
docs Ready Ready Preview, Comment Mar 23, 2026 4:43pm
eclipse Ready Ready Preview, Comment Mar 23, 2026 4:43pm
site Ready Ready Preview, Comment Mar 23, 2026 4:43pm

Request Review

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 23, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: bc02160a-0283-4dd5-846e-9ce587555c06

📥 Commits

Reviewing files that changed from the base of the PR and between e147eec and 2a0a6f2.

📒 Files selected for processing (1)
  • apps/blog/content/blog/sunsetting-prisma-optimize/index.mdx
✅ Files skipped from review due to trivial changes (1)
  • apps/blog/content/blog/sunsetting-prisma-optimize/index.mdx

Walkthrough

A new MDX blog post is added announcing the deprecation of Prisma Optimize and introducing Query Insights in Prisma Postgres; the post contains full frontmatter metadata, explanatory content, dashboard GIF/screenshots, lessons learned, and migration steps for existing Optimize users.

Changes

Cohort / File(s) Summary
Blog Content
apps/blog/content/blog/sunsetting-prisma-optimize/index.mdx
Adds a new MDX announcement with frontmatter (title, slug, date, authors, meta/hero images, tags), explains sunsetting of “Prisma Optimize,” documents Query Insights in Prisma Postgres (Queries tab, embedded dashboard GIF), and provides migration steps (uninstall @prisma/extension-optimize, remove .$extends(withOptimize()), and related cleanup).

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'feat(blog): sunsetting optimise' clearly summarizes the main change: adding a blog post announcing the deprecation of Prisma Optimize. It uses conventional commit formatting and accurately reflects the primary purpose of this changeset.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@apps/blog/content/blog/sunsetting-prisma-optimise/index.mdx`:
- Line 60: The sentence "Query Insights will soon be launching more broadly, and
it is available as part of **Prisma Postgres** without extra setup." is
contradictory; choose a single clear rollout state and update that sentence
accordingly—for example replace it with "Query Insights is available now as part
of Prisma Postgres without extra setup; broader rollout will follow soon."
Ensure the edited sentence in the blog content reflects the chosen state
(available now vs. coming soon) and keeps the bolding for Prisma Postgres if
desired.
- Line 3: The frontmatter slug value currently uses British spelling
"sunsetting-prisma-optimise"; update the slug to use the product's canonical
name by replacing the slug value "sunsetting-prisma-optimise" with
"sunsetting-prisma-optimize" in the file (update the slug field so internal
links and search use the canonical "Optimize" spelling).
- Around line 53-58: The migration snippet removes the extension call but
doesn't instruct removing the now-unused import; update the example so after
deleting the .$extends(withOptimize()) call you also remove the corresponding
import (withOptimize) and any references to it (e.g., from the PrismaClient
import or top-of-file import statement), then run a quick TypeScript/ESLint
check to ensure no dead/import errors remain; target symbols: PrismaClient and
withOptimize.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: cd952600-f827-43db-a5c0-b02da15cae80

📥 Commits

Reviewing files that changed from the base of the PR and between 1e68c7f and 63f0ecd.

⛔ Files ignored due to path filters (3)
  • apps/blog/public/sunsetting-prisma-optimise/imgs/optimize-sunset.svg is excluded by !**/*.svg
  • apps/blog/public/sunsetting-prisma-optimise/imgs/optimize-sunset@2x.png is excluded by !**/*.png
  • apps/blog/public/sunsetting-prisma-optimise/imgs/query-insights.gif is excluded by !**/*.gif
📒 Files selected for processing (1)
  • apps/blog/content/blog/sunsetting-prisma-optimise/index.mdx

@argos-ci
Copy link

argos-ci bot commented Mar 23, 2026

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
default (Inspect) ⚠️ Changes detected (Review) 1 changed Mar 23, 2026, 4:48 PM

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

♻️ Duplicate comments (2)
apps/blog/content/blog/sunsetting-prisma-optimize/index.mdx (2)

54-54: ⚠️ Potential issue | 🟡 Minor

Clarify rollout status to avoid contradictory messaging.

Line 54 states Query Insights "will soon be launching more broadly" while also saying it "is available." This creates ambiguity for readers trying to understand whether they can use it today or need to wait.

Choose one clear state: either it's available now (for Prisma Postgres users) with broader rollout coming, or it's coming soon. The current phrasing contradicts itself.

💡 Suggested revision
-Query Insights will soon be launching more broadly, and it is available as part of **Prisma Postgres** without extra setup.
+Query Insights is available now as part of **Prisma Postgres** without extra setup, and will be launching more broadly soon.

or

-Query Insights will soon be launching more broadly, and it is available as part of **Prisma Postgres** without extra setup.
+Query Insights is available now as part of **Prisma Postgres** without extra setup. Broader rollout will follow soon.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@apps/blog/content/blog/sunsetting-prisma-optimize/index.mdx` at line 54, The
sentence mentioning "Query Insights" currently mixes two states ("will soon be
launching more broadly" and "is available"), creating contradictory messaging;
edit the line containing "Query Insights" and "Prisma Postgres" to express a
single clear state—either state it is available now for Prisma Postgres users
and note broader rollout is coming, or state it is coming soon and remove "is
available" wording—so update the copy to one unambiguous sentence referencing
"Query Insights" and "Prisma Postgres" accordingly.

49-51: ⚠️ Potential issue | 🟠 Major

Migration snippet is incomplete for copy-paste users.

The code snippet removes the .$extends(withOptimize()) call but doesn't show removing the corresponding import. Readers following this literally may leave dead imports in their codebase, which can cause linting errors or confusion.

📝 Proposed fix
+import { PrismaClient } from '@prisma/client'
-import { withOptimize } from '@prisma/extension-optimize'
 
 const prisma = new PrismaClient()
   .$extends(withOptimize()) // [!code --]
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@apps/blog/content/blog/sunsetting-prisma-optimize/index.mdx` around lines 49
- 51, The code snippet shows removing ".$extends(withOptimize())" but doesn't
remove the corresponding import; locate the import statement that brings in
withOptimize (e.g., an `import { withOptimize } from ...` or `const {
withOptimize } = ...`) and remove it or update the example to show both the
removed call and the removed import so readers don't end up with a dead/unused
import alongside PrismaClient; ensure references to the symbol withOptimize are
fully removed from the snippet and any example code blocks.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@apps/blog/content/blog/sunsetting-prisma-optimize/index.mdx`:
- Line 20: Update the sentence shown in the diff ("In recent rounds of user
feedback, we asked users of Optmize what their pain points where with the
feature.") by correcting the two typos: change "Optmize" to "Optimize" and
change "where" to "were" so the sentence reads "In recent rounds of user
feedback, we asked users of Optimize what their pain points were with the
feature."

---

Duplicate comments:
In `@apps/blog/content/blog/sunsetting-prisma-optimize/index.mdx`:
- Line 54: The sentence mentioning "Query Insights" currently mixes two states
("will soon be launching more broadly" and "is available"), creating
contradictory messaging; edit the line containing "Query Insights" and "Prisma
Postgres" to express a single clear state—either state it is available now for
Prisma Postgres users and note broader rollout is coming, or state it is coming
soon and remove "is available" wording—so update the copy to one unambiguous
sentence referencing "Query Insights" and "Prisma Postgres" accordingly.
- Around line 49-51: The code snippet shows removing ".$extends(withOptimize())"
but doesn't remove the corresponding import; locate the import statement that
brings in withOptimize (e.g., an `import { withOptimize } from ...` or `const {
withOptimize } = ...`) and remove it or update the example to show both the
removed call and the removed import so readers don't end up with a dead/unused
import alongside PrismaClient; ensure references to the symbol withOptimize are
fully removed from the snippet and any example code blocks.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: e829572f-4d37-4a20-a7e3-1481c12a8d40

📥 Commits

Reviewing files that changed from the base of the PR and between 98459d6 and e147eec.

📒 Files selected for processing (1)
  • apps/blog/content/blog/sunsetting-prisma-optimize/index.mdx

Apply review feedback to the Optimize sunset post by fixing copy typos, clarifying Query Insights rollout wording, and improving the migration diff to remove the unused Optimize import.

Made-with: Cursor
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.

1 participant