Josef Henryson
Josef Henryson
PPrisma
Created by Josef Henryson on 1/10/2025 in #help-and-questions
Alternative to Apollo Server 4?
This is not really a Prisma question. But I gather many of you also use Prisma for your GraphQL needs, so I would like to know if someone could give me a tip on alternatives to using Apollo Server? It seems to have performance problems (or I am doing something wrong) so I would like to try if some other system might give better performance.
12 replies
PPrisma
Created by Josef Henryson on 12/13/2024 in #help-and-questions
Performance problem
Hi all! We have a problem with performance. We use prisma 5.21 and I measure time for a call where we get a batch of 50 objects and the response is about 800kb. Currently it takes about 1.9s to get the response from prisma. Does that sound reasonable? Any ideas on where I should start troubleshooting? My code below: const recruitments = await prisma.recruitment.findMany({ where, take, // 50 skip, orderBy, include: { company: { include: { contacts: true }, }, recruiter: true, recruiterGuests: true, recruiterExternals: true, jobAd: true, process: { orderBy: { order: "asc", }, }, regions: true, occupationalAreas: true, occupationalGroups: true, applications: true, profileFile: true, recruitmentSelectedPublishChannels: { include: { publishChannel: { include: { selected: true, }, }, }, }, addons: true, selection: { include: { recruitments: true, answers: true, }, }, symbols: true, }, })
8 replies
PPrisma
Created by Josef Henryson on 10/17/2024 in #help-and-questions
prisma migrate dev - data lost
Hi. I am trying to migrate my updated schema to my database. But when I do I get the question: We need to reset the MySQL database... All data will be lost How can I migrate without losing all my data?
10 replies