core: optimise user list endpoint (#8353)
* unrelated changes Signed-off-by: Jens Langhammer <jens@goauthentik.io> * optimization pass 1: reduce N tenant lookups by taking tenant from request, reduce get_anonymous calls Signed-off-by: Jens Langhammer <jens@goauthentik.io> * fix lint Signed-off-by: Jens Langhammer <jens@goauthentik.io> * fix Signed-off-by: Jens Langhammer <jens@goauthentik.io> * make it easier to exclude anonymous user Signed-off-by: Jens Langhammer <jens@goauthentik.io> * fix? Signed-off-by: Jens Langhammer <jens@goauthentik.io> --------- Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
		| @ -54,7 +54,7 @@ func (cs *CryptoStore) getFingerprint(uuid string) string { | ||||
| func (cs *CryptoStore) Fetch(uuid string) error { | ||||
| 	cfp := cs.getFingerprint(uuid) | ||||
| 	if cfp == cs.fingerprints[uuid] { | ||||
| 		cs.log.WithField("uuid", uuid).Info("Fingerprint hasn't changed, not fetching cert") | ||||
| 		cs.log.WithField("uuid", uuid).Debug("Fingerprint hasn't changed, not fetching cert") | ||||
| 		return nil | ||||
| 	} | ||||
| 	cs.log.WithField("uuid", uuid).Info("Fetching certificate and private key") | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Jens L
					Jens L