-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix N+1 Issue in Namespace Search and Enhance Tree View #153
base: main
Are you sure you want to change the base?
Conversation
8d19e3b
to
8fda699
Compare
4644dcb
to
8fda699
Compare
51cac3d
to
9809d0a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@zoetrope
Could you review this PR as a core maintainer please?
907b41e
to
15b242d
Compare
if err := o.showNS(ctx, ns.Name, 0); err != nil { | ||
return err | ||
for _, children := range childMap { | ||
sort.Slice(children, func(i, j int) bool { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are sorting too many times.
allNamespaces.Items
is already sorted, there is no need to sort children here.
Overview
Fixes
Rationale