Missing Index Candidate (ARCH4058)
Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.
Key java.orm.missing-index-candidate · Severity info · Category orm
If a column frequently used in query filters has no index, the database falls back to a full table scan. Declare an @Index on filtered columns.
Incorrect
Section titled “Incorrect”@Entitypublic class User { @Id private Long id; private String email; // findByEmail called heavily, no index}Correct
Section titled “Correct”@Entity@Table(indexes = @Index(name = "idx_user_email", columnList = "email"))public class User { @Id private Long id; private String email;}Add a DB index on frequently filtered/ordered columns via @Table(indexes = ...).