From dcc58a9d509ca0117b81a2156ef0f0fc48f5f5c2 Mon Sep 17 00:00:00 2001 From: Simon Ho Date: Fri, 21 Oct 2016 16:13:16 -0700 Subject: [PATCH] Need index on principalId for performance. (#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": {