prisma1 icon indicating copy to clipboard operation
prisma1 copied to clipboard

prisma deploy is really slow, event apply changes or apply nothing

Open hiepxanh opened this issue 7 years ago • 5 comments

Describe the bug As I describe, I clone new but it very slow

To Reproduce Steps to reproduce the behavior:

  1. clone git clone [email protected]:prisma/prisma-examples.git
  2. cd prisma-examples/node/docker-postgres && npm i
  3. docker-compose up -d
  4. prisma deploy

Expected behavior It should take 1s to deploy Screenshots The problem: image it should be fast like this: image image image image image relate link: udemy issue 1 udemy issue 2 udemy issue 3 Versions (please complete the following information):

  • Connector:Postgres
  • Prisma Server: 1.34.5
  • prisma: prisma/1.34.5 (windows-x64) node-v10.16.2
  • OS: Windows 10

Additional context

  • it could not be my computer hardware: I have 32gb ram and ryzen 5 1600
  • it could not be the network
  • it could be docker problem
  • it could be prisma problem

hiepxanh avatar Aug 17 '19 15:08 hiepxanh

@hiepxanh

Are you using a database that is inside the docker VM or you are using an external database?

Deploy time depends on the latency to the database and the amount of data in the database. Let me know which database you are using and where it is hosted and how much data it has.

pantharshit00 avatar Aug 23 '19 12:08 pantharshit00

I'm using Docker for desktop and database is pulling from heroku inside a docker. I don't know why, because I use the same database that deployed to the host server is event faster than this one running locally on window desktop. The next monday, I will try to use test on the Mac to the anything different. Maybe I can guest the problem to describe to you. And saving other window user :D

hiepxanh avatar Aug 24 '19 01:08 hiepxanh

I have the same problem on windows 10 and postgres db deployed to heroku

image

abdusamadtv avatar Sep 16 '19 06:09 abdusamadtv

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 10 days if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Oct 31 '19 06:10 stale[bot]

+1

adrianoresende avatar Mar 28 '20 18:03 adrianoresende