Skip to content

Prisma retires standalone Accelerate today, with no cache replacement

Accelerate in front of your own database stops working on 1 December, and it takes connection pooling and query caching with it.

Source: Prisma

Standalone Prisma Accelerate is retired as of today. If you pointed Accelerate at your own Postgres, MySQL, MariaDB, CockroachDB, PlanetScale or MongoDB database, that connection stops working, and so does any Prisma Postgres connection that still routes through accelerate.prisma-data.net.

Removing Accelerate also removes the two things it was there for: managed connection pooling and query caching. Prisma’s own migration guide is blunt about the second one, pointing at any cacheStrategy call in your queries:

await prisma.user.findMany({
  cacheStrategy: { ttl: 60 },
})

Take that option out and the query just runs straight against your database, no caching, every time. Prisma says query caching “is not on our immediate roadmap” for its replacement, Prisma Postgres, which does bundle connection pooling on every plan. If your database isn’t Postgres, or you’re not moving to Prisma Postgres, you’re on your own for a pooling strategy, which matters most in serverless or edge runtimes where unpooled connections exhaust fast.

Why it matters: if you haven’t already removed Accelerate from your Prisma client setup, your production app may be failing to connect right now rather than at some point in the future. Check for cacheStrategy usage and an Accelerate connection string before you do anything else today.

Share

Related reading

More from The Wire

All briefs

node-tar patches a Windows RCE bug triggered by npm install

A newline-injection flaw in node-tar let a crafted archive forge its own file paths and run code during npm install on Windows. The fix landed in a string of releases up to 8.1.0 on 2 December.

via GitHub Security Advisories (isaacs/node-tar)