Optimizing Prisma Models

To optimize your prisma models, go to workstation.justprintit.ai and register/login.

You can optimize your Prisma model by having it analyze prisma queries. In the left navigation panel. Add files to the prompt context. You can then ask Printer to analyze the field to improve the prisma.schema.

In this example, I added a fetch posts server action that queries by tags and categories. Printer then adds indices for tags and categories to the prisma model to improve read performance.

I used the default prompt for analyzing Prisma queries and I added the fetch posts action to the prompt context.