Feature Summary
I think it should be possible to disable the below warning on VSCode with a specific tag on prisma file (like "ignore relation" comment).
With relationMode = "prisma", no foreign keys are used, so relation fields will not benefit from the index usually created by the relational database under the hood. This can lead to poor performance when querying these fields. We recommend adding an index manually. Learn more at https://pris.ly/d/relation-mode-prisma-indexes"
Use Cases & Problem Description
I'm using VSCode with relationMode = "prisma" and i have a relation that should not have a specific index
Proposed Solution
add the possibility to add a tag to disable the warning, like comment "ignore relation"
Alternative Solutions
add a tag
Potential Considerations
No response
Prisma Version
7.8.0
What part of Prisma does this affect?
None
Additional Context
No response
Pre-Submission Checklist
Feature Summary
I think it should be possible to disable the below warning on VSCode with a specific tag on prisma file (like "ignore relation" comment).
With
relationMode = "prisma", no foreign keys are used, so relation fields will not benefit from the index usually created by the relational database under the hood. This can lead to poor performance when querying these fields. We recommend adding an index manually. Learn more at https://pris.ly/d/relation-mode-prisma-indexes"Use Cases & Problem Description
I'm using VSCode with
relationMode = "prisma"and i have a relation that should not have a specific indexProposed Solution
add the possibility to add a tag to disable the warning, like comment "ignore relation"
Alternative Solutions
add a tag
Potential Considerations
No response
Prisma Version
7.8.0
What part of Prisma does this affect?
None
Additional Context
No response
Pre-Submission Checklist