Access Entity Policy takes more than 2 seconds to retrieve app data.

The AE Policy used in API Proxy as:

<AccessEntity name="AEReadCustomAttributes"> 
  <DisplayName>AE:ReadCustomAttributes</DisplayName> 
  <Properties/> 
  <EntityType value="app"/> 
  <EntityIdentifier type="consumerkey" ref="client_id"/> 
</AccessEntity>

This Policy's execution time is higher for a particular time and what may be the possible reason of more execution time?

0 1 73
1 REPLY 1

This policy does direct reads from un-cached data in our datastore so lookup times can be lengthy. There are a couple of ways to get at the information in different ways that are more efficient, the first is the oauthV2Info policy, the second is the VerifyAPIKey policy and if for some reason and there are ocassionally reasons that you need to use access entity, you should wrap the policy with the lookupCache and the populateCache policy.