Skip to content

Conversation

@mhartington
Copy link
Contributor

@mhartington mhartington commented Nov 5, 2025

Summary by CodeRabbit

  • Documentation
    • Clarified that connection pooling is built-in and automatically managed for Prisma Postgres; removed prior fixed-limit wording.
    • Added a plan comparison table showing pooled connection limits by tier.
    • Updated guidance for configuring pool size for Prisma Postgres, non-Postgres, and Accelerate scenarios.
    • Streamlined direct-connection setup to a dashboard/UI flow and added pool toggle examples.
    • Removed Early Access notes and refined timeout, query, and autoscaling guidance; moved Accelerate pooling docs into the Prisma Postgres section.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 5, 2025

Dangerous URL check

No absolute URLs to prisma.io/docs found.
No local URLs found.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Nov 5, 2025

Walkthrough

Three Prisma docs were updated: the main Postgres pooling doc now presents pooling as built-in with plan-based pooled connection limits and updated configuration guidance; the direct-connections doc was revised for a dashboard-driven connection-string workflow and added pooling examples; the Accelerate page now points readers to the Postgres pooling docs.

Changes

Cohort / File(s) Summary
Postgres connection pooling (main)
content/250-postgres/300-database/400-connection-pooling.mdx
Removed claims that Prisma Accelerate enabled pooling by default; added a "Connection pooling in Prisma Postgres" heading; introduced a plan-based pooled connection limits table (Free, Starter, Pro, Business); replaced prior fixed-limit language with automatic pooling management for Prisma Postgres; reorganized guidance on configuring pool size, timeouts, query limits, and autoscaling; relocated related notes.
Direct connections + pooling examples
content/250-postgres/300-database/650-direct-connections.mdx
Minor copy and punctuation edits; switched connection workflow to dashboard UI steps (Connect → Generate new connection string → optional pool toggle → copy); added a "Pooling connections" subsection and pool=true connection-string example; removed Early Access notes and adjusted connection limit/timeout presentation.
Accelerate doc pointer
content/300-accelerate/250-connection-pooling.mdx
Capitalized "Connection Pooling", clarified wording that Connection Pooling is included in Prisma Postgres, and added a note directing readers to the Prisma Postgres connection pooling documentation.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

  • Check consistency of the plan-based pooled connection limits across the Postgres docs.
  • Verify the distinction between automatically managed Prisma Postgres pooling and manual sizing for non-Postgres cases is clear.
  • Validate connection-string examples (pool=true, sslmode=require) and the updated dashboard workflow steps.
  • Confirm removal of Early Access references and that related tables/notes were updated uniformly.

Possibly related PRs

Pre-merge checks

❌ Failed checks (1 inconclusive)
Check name Status Explanation Resolution
Title check ❓ Inconclusive The title is vague and generic. It uses non-descriptive terms ('update for the 6.19 release') that don't convey meaningful information about the actual changeset, which focuses on connection pooling documentation updates. Consider using a more specific title that reflects the main change, such as 'docs: update connection pooling documentation for Prisma Postgres' to better communicate the primary focus of the changes.
✅ Passed checks (1 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.

📜 Recent review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 7f97163 and adf0ee1.

📒 Files selected for processing (1)
  • content/250-postgres/300-database/650-direct-connections.mdx (4 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • content/250-postgres/300-database/650-direct-connections.mdx
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
  • GitHub Check: Check internal links
  • GitHub Check: runner / linkspector
  • GitHub Check: Cloudflare Pages

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.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 5, 2025

Redirect check

This PR probably requires the following redirects to be added to static/_redirects:

  • This PR does not change any pages in a way that would require a redirect.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 5, 2025

🍈 Lychee Link Check Report

Note: Links are cached for 5 minutes. Failed links (timeouts, rate limits) are retried in a second run with longer timeout.

📊 Results Overview

Status Count
🔍 Total 2413
✅ Successful 2387
⏳ Timeouts 0
🔀 Redirected 3
👻 Excluded 22
❓ Unknown 0
🚫 Errors 0
⛔ Unsupported 1

Redirects per input

Redirects in 800-guides/370-bun.mdx

Redirects in 800-guides/380-vercel-app-deployment.mdx

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: 4

📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between d0cd80e and 48504a1.

📒 Files selected for processing (3)
  • content/250-postgres/300-database/400-connection-pooling.mdx (1 hunks)
  • content/250-postgres/300-database/650-direct-connections.mdx (4 hunks)
  • content/300-accelerate/250-connection-pooling.mdx (1 hunks)
🧰 Additional context used
🪛 GitHub Actions: Documentation Checks
content/250-postgres/300-database/650-direct-connections.mdx

[error] 21-21: cspell: Unknown word 'datatbase'. Fix: 'database'.

content/250-postgres/300-database/400-connection-pooling.mdx

[error] 17-17: cspell: Unknown word 'depening'. Fix: 'depending' or 'deepening'.


[error] 41-41: cspell: Unknown word 'automatially'. Fix: 'automatically'.

🪛 LanguageTool
content/250-postgres/300-database/650-direct-connections.mdx

[grammar] ~21-~21: Ensure spelling is correct
Context: ...nstance. 1. Click the Connect to your datatbase button in your dashboard. 1. Click th...

(QB_NEW_EN_ORTHOGRAPHY_ERROR_IDS_1)

content/250-postgres/300-database/400-connection-pooling.mdx

[style] ~11-~11: Consider a more concise word here.
Context: ...to further configure connection pooling in order to optimize the performance of your applic...

(IN_ORDER_TO_PREMIUM)


[grammar] ~17-~17: Ensure spelling is correct
Context: ...onnection limit starts at 10 and scales depening on your plan. | ...

(QB_NEW_EN_ORTHOGRAPHY_ERROR_IDS_1)


[grammar] ~41-~41: Ensure spelling is correct
Context: ...stgres, the connection limit is managed automatially for you. If you're **not using Prisma ...

(QB_NEW_EN_ORTHOGRAPHY_ERROR_IDS_1)

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: Check internal links
  • GitHub Check: runner / linkspector
🔇 Additional comments (7)
content/300-accelerate/250-connection-pooling.mdx (1)

7-8: Redirect content is clear and appropriately structured.

The file effectively communicates that connection pooling documentation has moved while providing context about what Accelerate offers. The redirect to the Postgres section is explicit and helpful.

content/250-postgres/300-database/650-direct-connections.mdx (2)

11-24: UI workflow steps are clear and well-organized.

The updated connection flow properly guides users through the console steps for both standard and pooled connections. The sequence is intuitive and the toggle for pooling is explicitly documented.


46-52: New pooling section is well-positioned and practical.

The addition of connection pooling guidance with a concrete example (pool=true parameter) aligns well with the broader documentation reorganization and helps users understand how to enable pooling via the connection string.

content/250-postgres/300-database/400-connection-pooling.mdx (4)

14-36: Plan-based limits structure is clear and helpful.

The reorganization into dedicated "Connection pooling in Prisma Postgres" section with separate tables for Postgres vs. "your own database" scenarios is well-structured and significantly improves clarity for users. The note at lines 32-34 appropriately contextualizes the Starter plan limits.


39-45: Configuration section clearly differentiates between scenarios.

The restructured guidance properly separates automatic management (Prisma Postgres), manual ORM configuration, and Accelerate setup paths. This prevents confusion about which approach applies to each use case and aligns with related documentation changes.


65-127: Query limits documentation is comprehensive and well-structured.

The plan-based tables for query timeouts, interactive transaction timeouts, and response sizes provide clear progression and guidance. The warnings appropriately recommend optimization before increasing limits, promoting best practices.


129-157: Autoscaling section scope and explanation are clear.

The section correctly scopes autoscaling to Accelerate with non-Postgres databases, and the concrete example of distributing connections across Query Engine instances effectively explains the scaling mechanism. Plan-based limits table is helpful for users evaluating feature eligibility.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Nov 5, 2025

Deploying docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: adf0ee1
Status: ✅  Deploy successful!
Preview URL: https://e8eb000d.docs-51g.pages.dev
Branch Preview URL: https://v6-19-0.docs-51g.pages.dev

View logs

mhartington and others added 4 commits November 5, 2025 09:41
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
@github-actions
Copy link
Contributor

github-actions bot commented Nov 5, 2025

🍈 Lychee Link Check Report

Note: Links are cached for 5 minutes. Failed links (timeouts, rate limits) are retried in a second run with longer timeout.

📊 Results Overview

Status Count
🔍 Total 2413
✅ Successful 2383
⏳ Timeouts 0
🔀 Redirected 7
👻 Excluded 22
❓ Unknown 0
🚫 Errors 0
⛔ Unsupported 1

Redirects per input

Redirects in 800-guides/070-cloudflare-d1.mdx

Redirects in 800-guides/090-nextjs.mdx

Redirects in 800-guides/170-react-router-7.mdx

Redirects in 800-guides/350-authjs-nextjs.mdx

Redirects in 800-guides/370-bun.mdx

Redirects in 800-guides/380-vercel-app-deployment.mdx

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

🧹 Nitpick comments (1)
content/250-postgres/300-database/400-connection-pooling.mdx (1)

11-11: Minor style improvement: reduce verbosity.

Line 11 uses "in order to" which is more verbose than necessary. Consider simplifying to just "to" for conciseness, as this is a common style guideline in technical documentation.

Apply this diff for a more concise phrasing:

-However, if you are using your own database with Prisma Accelerate, it may be beneficial to further configure connection pooling in order to optimize the performance of your application.
+However, if you are using your own database with Prisma Accelerate, it may be beneficial to further configure connection pooling to optimize the performance of your application.
📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 48504a1 and 9441072.

📒 Files selected for processing (2)
  • content/250-postgres/300-database/400-connection-pooling.mdx (1 hunks)
  • content/250-postgres/300-database/650-direct-connections.mdx (4 hunks)
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: 2025-10-08T16:23:00.388Z
Learnt from: aidankmcalister
Repo: prisma/docs PR: 7165
File: content/800-guides/550-test-guide.mdx:85-90
Timestamp: 2025-10-08T16:23:00.388Z
Learning: For .mdx files in the prisma/docs repository: Only flag code snippets for (1) exposed secrets with real-looking values that should be placeholders (e.g., API keys, database passwords, AWS credentials), or (2) blatant syntax errors like missing parentheses, brackets, braces, or mismatched delimiters. Do not flag code quality issues, anti-patterns, security vulnerabilities, missing error handling, unused variables, or any other bad practices, as documentation intentionally shows problematic code.

Applied to files:

  • content/250-postgres/300-database/400-connection-pooling.mdx
🪛 LanguageTool
content/250-postgres/300-database/400-connection-pooling.mdx

[style] ~11-~11: Consider a more concise word here.
Context: ...to further configure connection pooling in order to optimize the performance of your applic...

(IN_ORDER_TO_PREMIUM)


[grammar] ~41-~41: Ensure spelling is correct
Context: ...stgres, the connection limit is managed automatially for you. If you're **not using Prisma ...

(QB_NEW_EN_ORTHOGRAPHY_ERROR_IDS_1)

content/250-postgres/300-database/650-direct-connections.mdx

[grammar] ~21-~21: Ensure spelling is correct
Context: ...nstance. 1. Click the Connect to your datatbase button in your dashboard. 1. Click th...

(QB_NEW_EN_ORTHOGRAPHY_ERROR_IDS_1)

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: runner / linkspector
🔇 Additional comments (1)
content/250-postgres/300-database/650-direct-connections.mdx (1)

46-52: Verify pooling parameter documentation.

The new "Pooling connections" section documents pool=true as an optional parameter. The Accelerate documentation confirms that connection pooling documentation is now in the Prisma Postgres section, which aligns with this change. However, verify that the example includes sslmode=require since SSL is required per line 44. The current example shows only pool=true without the required SSL parameter—users should see the combined format.

Consider updating the example to show both parameters together:

 ### Pooling connections
 
 If you want to enable connection pooling, you can append `pool=true` to your TCP connection string
 
 ```bash
-DATABASE_URL="postgres://USER:[email protected]:5432/?pool=true"
+DATABASE_URL="postgres://USER:[email protected]:5432/?sslmode=require&pool=true"

</blockquote></details>

</blockquote></details>

</details>

<!-- This is an auto-generated comment by CodeRabbit for review status -->

@github-actions
Copy link
Contributor

github-actions bot commented Nov 5, 2025

🍈 Lychee Link Check Report

Note: Links are cached for 5 minutes. Failed links (timeouts, rate limits) are retried in a second run with longer timeout.

📊 Results Overview

Status Count
🔍 Total 2413
✅ Successful 2387
⏳ Timeouts 0
🔀 Redirected 3
👻 Excluded 22
❓ Unknown 0
🚫 Errors 0
⛔ Unsupported 1

Redirects per input

Redirects in 800-guides/370-bun.mdx

Redirects in 800-guides/380-vercel-app-deployment.mdx

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.

2 participants