Skip to content

Commit cf2f44e

Browse files
jharrellnikolasburkankur-arch
authored
Clean up help section (#6541)
* move help articles, combine nextjs articles, add Accelerate admonition * Update content/200-orm/800-more/600-help-and-troubleshooting/400-nextjs-help.mdx * Update content/200-orm/800-more/600-help-and-troubleshooting/index.mdx * update img links * add needed redirects * correct links * Apply suggestions from code review Co-authored-by: Nikolas <[email protected]> * Apply suggestions from code review Co-authored-by: Ankur Datta <[email protected]> --------- Co-authored-by: Nikolas <[email protected]> Co-authored-by: Ankur Datta <[email protected]>
1 parent d21a366 commit cf2f44e

28 files changed

+153
-435
lines changed

content/200-orm/200-prisma-client/000-setup-and-configuration/050-databases-connections/200-pgbouncer.mdx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
---
22
title: Configure Prisma Client with PgBouncer
33
metaTitle: Configure Prisma Client with PgBouncer
4-
toc_max_heading_level: 2
54
---
65

7-
<TopBlock>
8-
96
An external connection pooler like PgBouncer holds a connection pool to the database, and proxies incoming client connections by sitting between Prisma Client and the database. This reduces the number of processes a database has to handle at any given time.
107

118
Usually, this works transparently, but some connection poolers only support a limited set of functionality. One common feature that external connection poolers do not support are named prepared statements, which Prisma ORM uses. For these cases, Prisma ORM can be configured to behave differently.
129

13-
</TopBlock>
10+
:::info
11+
12+
Looking for an easy, infrastructure-free solution? Try [Prisma Accelerate](https://www.prisma.io/accelerate?utm_source=docs&utm_campaign=pgbouncer-help)! It requires little to no setup and works seamlessly with all databases supported by Prisma ORM.
13+
14+
Ready to begin? Get started with Prisma Accelerate by clicking [here](https://console.prisma.io?utm_source=docs&utm_campaign=pgbouncer-help).
15+
:::
1416

1517
## PgBouncer
1618

content/200-orm/200-prisma-client/100-queries/100-query-optimization-performance.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ async function getUsers() {
9393
}
9494
```
9595

96-
For serverless development environments with frameworks that use HMR (Hot Module Replacement), ensure you properly handle a [single instance of Prisma in development](/orm/more/help-and-troubleshooting/help-articles/nextjs-prisma-client-dev-practices).
96+
For serverless development environments with frameworks that use HMR (Hot Module Replacement), ensure you properly handle a [single instance of Prisma in development](/orm/more/help-and-troubleshooting/nextjs-help#best-practices-for-using-prisma-client-in-development).
9797

9898
## Solving the n+1 problem
9999

content/200-orm/200-prisma-client/500-deployment/400-module-bundlers.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ To do so, you can use plugins that let you copy over static assets:
1515
| Bundler | Plugin |
1616
| :---------------------------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------- |
1717
| Webpack | [`copy-webpack-plugin`](https://github.com/webpack-contrib/copy-webpack-plugin#copy-webpack-plugin) |
18-
| Webpack (with [Next.js monorepo](/orm/more/help-and-troubleshooting/help-articles/nextjs-prisma-client-monorepo)) | [`nextjs-monorepo-workaround-plugin`](https://www.npmjs.com/package/@prisma/nextjs-monorepo-workaround-plugin) |
18+
| Webpack (with [Next.js monorepo](/orm/more/help-and-troubleshooting/nextjs-help#setting-up-prisma-orm-in-a-monorepo)) | [`nextjs-monorepo-workaround-plugin`](https://www.npmjs.com/package/@prisma/nextjs-monorepo-workaround-plugin) |
1919
| Parcel | [`parcel-plugin-static-files-copy`](https://github.com/elwin013/parcel-plugin-static-files-copy#readme) |

content/200-orm/300-prisma-migrate/200-understanding-prisma-migrate/600-legacy-migrate.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ The following table shows which SQL operations are currently supported by legacy
197197
| Create indexes | `CREATE INDEX` | ✔️ |
198198
| Cascading deletes | `ON DELETE` | No (workaround: manually add in SQL and introspect) |
199199
| Cascading updates | `ON UPDATE` | No |
200-
| Data validation | `CHECK` | No ([workaround](/orm/more/help-and-troubleshooting/help-articles/check-constraints)) |
200+
| Data validation | `CHECK` | No ([workaround](/orm/more/help-and-troubleshooting/check-constraints)) |
201201

202202
Note that this table assumes that the operation is also supported by the underlying database. For example, `ENUM` is not supported in SQLite. This means that you also can't use `enum` when using legacy Prisma Migrate.
203203

content/200-orm/500-reference/050-prisma-client-reference.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3502,7 +3502,7 @@ const result = await prisma.user.update({
35023502
<Admonition type="info">
35033503
35043504
- From version 4.3.0, you can also use these operators to compare _fields_ in the same model [with the `<model>.fields` property](#compare-columns-in-the-same-table).
3505-
- In versions before 4.3.0, you can compare fields in the same model [with raw queries](/orm/more/help-and-troubleshooting/help-articles/comparing-columns-through-raw-queries).
3505+
- In versions before 4.3.0, you can compare fields in the same model [with raw queries](/orm/more/help-and-troubleshooting/comparing-columns-through-raw-queries).
35063506
35073507
</Admonition>
35083508
@@ -5525,7 +5525,7 @@ This feature was moved to general availability in version 5.0.0 and was availabl
55255525
55265526
<Admonition type="info">
55275527
5528-
In the following situations, you must [use raw queries to compare columns in the same table](/orm/more/help-and-troubleshooting/help-articles/comparing-columns-through-raw-queries):
5528+
In the following situations, you must [use raw queries to compare columns in the same table](/orm/more/help-and-troubleshooting/comparing-columns-through-raw-queries):
55295529
55305530
- If you use a version earlier than 4.3.0
55315531
- If you want to use a unique filter, such as [`findUnique`](#findunique) or [`findUniqueOrThrow`](#finduniqueorthrow)

content/200-orm/800-more/600-help-and-troubleshooting/050-creating-bug-reports.mdx

Lines changed: 0 additions & 160 deletions
This file was deleted.

content/200-orm/800-more/600-help-and-troubleshooting/100-help-articles/100-autocompletion-in-graphql-resolvers-with-js.mdx renamed to content/200-orm/800-more/600-help-and-troubleshooting/100-autocompletion-in-graphql-resolvers-with-js.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ filterPosts: (parent, args, ctx) => {
2727

2828
Now whenever you type `ctx.` VS Code will provide unnecessary options in the autocomplete which is undesirable.
2929

30-
![Unwanted autocomplete values by VSCode](./unwanted-autocomplete-values-in-vscode.png)
30+
![Unwanted autocomplete values by VSCode](/img/orm/unwanted-autocomplete-values-in-vscode.png)
3131

3232
VS Code doesn't know the _type_ of the `context` object so it can't provide any intellisense for it, which is why unwanted suggestions are displayed.
3333

@@ -69,7 +69,7 @@ This will tell VS Code that the `context` has a property named `prisma` and the
6969

7070
And voilà, autocompletion in plain JavaScript.
7171

72-
![The correct parameters for context are obtained](./prisma-autocompletion-in-js.png)
72+
![The correct parameters for context are obtained](/img/orm/prisma-autocompletion-in-js.png)
7373

7474
The final file should look something like:
7575

content/200-orm/800-more/600-help-and-troubleshooting/100-help-articles/400-nextjs-prisma-client-dev-practices.mdx

Lines changed: 0 additions & 81 deletions
This file was deleted.

0 commit comments

Comments
 (0)