From 3e0fd94f6066fb4e2313ab601f9d0d4bb0a1b7b9 Mon Sep 17 00:00:00 2001 From: Simon Ho Date: Fri, 21 Oct 2016 16:31:33 -0700 Subject: [PATCH] Need index on principalId for performance. (#2883) (#2884) Backport of #2883 --- common/models/role-mapping.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/models/role-mapping.json b/common/models/role-mapping.json index 592f2906..732e24af 100644 --- a/common/models/role-mapping.json +++ b/common/models/role-mapping.json @@ -11,7 +11,10 @@ "type": "string", "description": "The principal type, such as user, application, or role" }, - "principalId": "string" + "principalId": { + "type": "string", + "index": true + } }, "relations": { "role": {