Skip to content

disable "missing index" warning on VSCode #29545

@marco-mastella

Description

@marco-mastella

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

  • I have searched existing issues to make sure this is not a duplicate
  • I have checked the Prisma roadmap to see if this is already planned
  • I have described why this belongs in Prisma Core rather than a solution in application code

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureA request for a new feature.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions