const totalConvos = await prisma.conversation.count(); This Prisma database…
Private research annotation
Sign in to add a private research label or note.
Jump to turn (6)
- 1const totalConvos = await prisma.conversation.count(); This Prisma database (Pla
- 2How do I add an index?
- 3Currently my Prisma Schema has a bunch of indexes on the Conversation model mode
- 4What should I ideally index here?
- 5I'm concerned about read performance. How do I optimize for that?
- 6Yes, which indexes
- User
const totalConvos = await prisma.conversation.count();
This Prisma database (Planetscale) query takes 15 - 16 seconds. How can I make it faster? It's just reading every row in the conversations table
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.