Problem/Motivation
\Drupal\consumers\Negotiator makes queries and loads an entity on every request. It doesn't need to do this.
Steps to reproduce
Make a request with the consumers module installed
Proposed resolution
Use cache and entity query techniques to minimise entity loading. Plus add a missing index.
Remaining tasks
User interface changes
None
API changes
New API to support getting the client ID only and not the consumer object from the request.
Data model changes
New index on client ID.
Issue fork consumers-3559900
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
alexpottComment #4
e0ipsoThis looks great! Thanks for the contribution and for the ping in Slack @alexpott.
Comment #5
e0ipso