Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

176
Visualizações
Weird slowness when using Prisma to connect from local machine to Amazon RDS

I'm experiencing some unusual slowness, but only when using Prisma on a local machine that is connecting to a remote RDS instance.

The strange thing is, if I run raw queries locally on the remote AWS RDS instance, it's much faster.

If I run my Postgres server locally, there is virtually no difference between writing raw queries and using Prisma.

There's something weird about the specific combination of using Prisma locally and connecting to a remote RDS instance. Here are some rough benchmarks doing a create:

  1. Local Prisma / Remote RDS: ~1000 ms (this is the problem)
  2. Remote Prisma / Remote RDS: ~100 ms (weirdly way faster than using Prisma locally)
  3. Local Raw Queries / Remote RDS ~100 ms (also weirdly way faster)

I'm using a standard DB connection in my prisma.schema:

datasource db {
  provider = "postgresql"
  url      = env("DB_URL")
}

I've debugged my connection / disconnection logic and nothing weird is going on there with like multiple connections / disconnections on query.

The only clue I have so far is that Prisma creates these transaction blocks with separate create and select statements and generally they are much more explicit and verbose than the raw queries I would write.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda