We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drizzle ORM supports Indexes.
Generally speaking, columns which are often used in filters or where clauses should be indexed. Here is a code snipped for indexing:
export const user = pgTable("user", { id: serial("id").primaryKey(), name: text("name"), email: text("email"), }, (table) => { return { nameIdx: index("name_idx").on(table.name), emailIdx: uniqueIndex("email_idx").on(table.email), }; });
All indexes must have a name since the beginning, so they will never run into issues like #4
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Drizzle ORM supports Indexes.
Generally speaking, columns which are often used in filters or where clauses should be indexed. Here is a code snipped for indexing:
All indexes must have a name since the beginning, so they will never run into issues like #4
The text was updated successfully, but these errors were encountered: