Use the existing auth token account view for listing instead of a custom query. Testing shows that the performance difference is negligible, and this is simpler.
11 lines
220 B
Go
11 lines
220 B
Go
// Copyright (c) HashiCorp, Inc.
|
|
// SPDX-License-Identifier: BUSL-1.1
|
|
|
|
package authtoken
|
|
|
|
const (
|
|
estimateCountAuthTokens = `
|
|
select reltuples::bigint as estimate from pg_class where oid in ('auth_token'::regclass)
|
|
`
|
|
)
|