From 636caea2172c8d4c63efa42deb62015b0f7b7087 Mon Sep 17 00:00:00 2001 From: Alex Unger Date: Thu, 29 Oct 2020 15:21:10 +0100 Subject: [PATCH] add index on account.Id due to a rogue query --- accounts/pkg/service/v0/index.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/accounts/pkg/service/v0/index.go b/accounts/pkg/service/v0/index.go index 3bb75e439..a3a120294 100644 --- a/accounts/pkg/service/v0/index.go +++ b/accounts/pkg/service/v0/index.go @@ -32,6 +32,10 @@ func (s Service) RebuildIndex(ctx context.Context, request *proto.RebuildIndexRe // recreateContainers adds all indices to the indexer that we have for this service. func recreateContainers(idx *indexer.Indexer, cfg *config.Config) error { // Accounts + if err := idx.AddIndex(&proto.Account{}, "Id", "Id", "accounts", "unique", nil, true); err != nil { + return err + } + if err := idx.AddIndex(&proto.Account{}, "DisplayName", "Id", "accounts", "non_unique", nil, true); err != nil { return err }