Title: #5647: WIP: check on some performance changes
Exercise some changes that should reduce the number of queries performed for some
operations, mostly host and user related.
The execution time patches will be replaced by Antonio's patch at some point.
Running in CI to see if anything is terribly broken.
To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/5647/head:pr5647
git checkout pr5647