Josef Henryson
Josef Henryson
PPrisma
Created by Josef Henryson on 1/10/2025 in #help-and-questions
Alternative to Apollo Server 4?
But postgraphile does not use Prisma? I reckon that Prisma should hide which DB I run, right?
12 replies
PPrisma
Created by Josef Henryson on 1/10/2025 in #help-and-questions
Alternative to Apollo Server 4?
Any ideas on how to optimize that?
12 replies
PPrisma
Created by Josef Henryson on 1/10/2025 in #help-and-questions
Alternative to Apollo Server 4?
Also http createServer
12 replies
PPrisma
Created by Josef Henryson on 1/10/2025 in #help-and-questions
Alternative to Apollo Server 4?
I am not sure it is Apollo. But I have timed my Prisma responses. And for example I get a response from Prisma in about 2s. But in the we browser it takes 6s to return. And the only thing I can see between is express and apollo server. Some info I found googling said that Apollo makes a lot of type checking etc that may take a long time.
12 replies
PPrisma
Created by Josef Henryson on 1/10/2025 in #help-and-questions
Alternative to Apollo Server 4?
I found some info on fastify + mercurius. Does that sound like an option?
12 replies
PPrisma
Created by Josef Henryson on 1/10/2025 in #help-and-questions
Alternative to Apollo Server 4?
Thank you. Unfortunately I use MySQL 😦
12 replies
PPrisma
Created by Josef Henryson on 12/13/2024 in #help-and-questions
Performance problem
Of course, my last comment is not prisma dependent, but I guess many of you also use Apollo server and might have some experience on this?
8 replies
PPrisma
Created by Josef Henryson on 12/13/2024 in #help-and-questions
Performance problem
Side question: I have tried to log response times. My Prisma query seems to take about 640.426ms, the same response in the browser is about 2.26 s. I use an express nodejs server with Apollo client & server. This is done on localhost. Isn't it a lot of time overhead between the prisma response and arrival on client?
8 replies
PPrisma
Created by Josef Henryson on 12/13/2024 in #help-and-questions
Performance problem
Do you think it may be wotrth trying out dataloader first?
8 replies
PPrisma
Created by Josef Henryson on 12/13/2024 in #help-and-questions
Performance problem
Hi, thanks for your reply. I have not tried that. I will check it out 🙂
8 replies
PPrisma
Created by Josef Henryson on 12/13/2024 in #help-and-questions
Performance problem
I tried to remove part of the select and then I got response time 500-700ms instead which is better, but I need that info, can I optimize that in some way? Removed this: recruitmentSelectedPublishChannels: { include: { publishChannel: { include: { selected: true, }, }, }, },
8 replies
PPrisma
Created by Josef Henryson on 10/17/2024 in #help-and-questions
prisma migrate dev - data lost
Hmm, I think I managed to solve it finally. I repeated the above steps: delete prisma_migrations in db, delete files, db pull, then an init migrate and I got the message my DB schema is in sync. Then I added my new fileds and a relation and made a new migrate and now I got a green message 😄
10 replies
PPrisma
Created by Josef Henryson on 10/17/2024 in #help-and-questions
prisma migrate dev - data lost
I get this message although I deleted all migration history: Drift detected: Your database schema is not in sync with your migration history.
10 replies
PPrisma
Created by Josef Henryson on 10/17/2024 in #help-and-questions
prisma migrate dev - data lost
Is it possible to reset all this in some way? I tried to delete all migration posts from DB and all the migration files, made a prisma db pull and then tried to make an initial migrate again. But it still wants to reset my database.
10 replies
PPrisma
Created by Josef Henryson on 10/17/2024 in #help-and-questions
prisma migrate dev - data lost
I will check it out. Thanks.
10 replies
PPrisma
Created by Josef Henryson on 10/17/2024 in #help-and-questions
prisma migrate dev - data lost
I even tried prisma db pull before migrate without success.
10 replies
PPrisma
Created by Josef Henryson on 10/17/2024 in #help-and-questions
prisma migrate dev - data lost
I also tried to remove all migration posts from the DB and all the migration files to make a new clean migrate, but I still got the same message.
10 replies
PPrisma
Created by Josef Henryson on 10/17/2024 in #help-and-questions
prisma migrate dev - data lost
Yes I added a relation between two new fields in two types. But should this not be possible without losing all the data?
10 replies