Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions internal/indexworker/indexworker.go
Original file line number Diff line number Diff line change
Expand Up @@ -308,12 +308,6 @@ func getUsersIndexes(namespace, trgmSchema string) []struct {
query: fmt.Sprintf(`CREATE INDEX CONCURRENTLY IF NOT EXISTS idx_users_email_trgm
ON %q.users USING gin (email %s.gin_trgm_ops);`, namespace, trgmSchema),
},
// enables exact-match and prefix searches and sorting by phone number
{
name: "idx_users_phone_pattern",
query: fmt.Sprintf(`CREATE INDEX CONCURRENTLY IF NOT EXISTS idx_users_phone_pattern
ON %q.users USING btree (phone text_pattern_ops);`, namespace),
},
// for range queries and sorting on created_at and last_sign_in_at
{
name: "idx_users_created_at_desc",
Expand Down