mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-15 18:25:13 +00:00
# Which Problems Are Solved Login v2 uses the `users.v2.ListUsers`-endpoint to get a user by login name. This query had an inefficient `WHERE`-clause. # How the Problems Are Solved Update the view and use a specific clause for this query. # Additional information Added in https://github.com/zitadel/zitadel/pull/10475 --------- Co-authored-by: Marco A. <[email protected]> Co-authored-by: Livio Spring <[email protected]>
35 lines
832 B
Go
35 lines
832 B
Go
package query
|
|
|
|
import "github.com/zitadel/zitadel/internal/query/projection"
|
|
|
|
var (
|
|
loginNameTable = table{
|
|
name: projection.LoginNameProjectionTable,
|
|
instanceIDCol: projection.LoginNameUserInstanceIDCol,
|
|
}
|
|
LoginNameUserIDCol = Column{
|
|
name: projection.LoginNameUserCol,
|
|
table: loginNameTable,
|
|
}
|
|
LoginNameNameCol = Column{
|
|
name: projection.LoginNameCol,
|
|
table: loginNameTable,
|
|
}
|
|
LoginNameNameLowerCol = Column{
|
|
name: projection.LoginNameLowerCol,
|
|
table: loginNameTable,
|
|
}
|
|
LoginNameIsPrimaryCol = Column{
|
|
name: projection.LoginNameIsPrimaryCol,
|
|
table: loginNameTable,
|
|
}
|
|
LoginNameInstanceIDCol = Column{
|
|
name: projection.LoginNameInstanceIDCol,
|
|
table: loginNameTable,
|
|
}
|
|
LoginNameResourceOwnerCol = Column{
|
|
name: projection.LoginNameResourceOwnerCol,
|
|
table: loginNameTable,
|
|
}
|
|
)
|