{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/25534","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/25534/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/25534/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/25534/events","html_url":"https://github.com/kubernetes/kubernetes/issues/25534","id":154508048,"number":25534,"title":"Build namespace index at API server cache for namespace scoped resource to improve LIST performance","user":{"login":"mqliang","id":12423751,"avatar_url":"https://avatars.githubusercontent.com/u/12423751?v=3","gravatar_id":"","url":"https://api.github.com/users/mqliang","html_url":"https://github.com/mqliang","followers_url":"https://api.github.com/users/mqliang/followers","following_url":"https://api.github.com/users/mqliang/following{/other_user}","gists_url":"https://api.github.com/users/mqliang/gists{/gist_id}","starred_url":"https://api.github.com/users/mqliang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mqliang/subscriptions","organizations_url":"https://api.github.com/users/mqliang/orgs","repos_url":"https://api.github.com/users/mqliang/repos","events_url":"https://api.github.com/users/mqliang/events{/privacy}","received_events_url":"https://api.github.com/users/mqliang/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/team/CSI-API%20Machinery%20SIG","name":"team/CSI-API Machinery SIG","color":"d2b48c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-12T15:13:15Z","updated_at":"2016-05-20T08:21:24Z","closed_at":null,"body":"aware of this when do https://github.com/kubernetes/kubernetes/pull/25329 and https://github.com/kubernetes/kubernetes/pull/25342\r\n\r\nwhen client LIST a dir, the API server cache will traverse ALL objects in the store and filter(see [store.list()](https://github.com/kubernetes/kubernetes/blob/master/pkg/storage/watch_cache.go#L231) and  [list and filter](https://github.com/kubernetes/kubernetes/blob/master/pkg/storage/cacher.go#L330-L342) ), which is really expensive.\r\n\r\nFor namespace scoped resource, I think we could build namespace index for it. It will help a lot when list objects in a namespace. \r\n\r\n@wojtek-t Any ideas? "},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/220544837","html_url":"https://github.com/kubernetes/kubernetes/issues/25534#issuecomment-220544837","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/25534","id":220544837,"user":{"login":"wojtek-t","id":10743879,"avatar_url":"https://avatars.githubusercontent.com/u/10743879?v=3","gravatar_id":"","url":"https://api.github.com/users/wojtek-t","html_url":"https://github.com/wojtek-t","followers_url":"https://api.github.com/users/wojtek-t/followers","following_url":"https://api.github.com/users/wojtek-t/following{/other_user}","gists_url":"https://api.github.com/users/wojtek-t/gists{/gist_id}","starred_url":"https://api.github.com/users/wojtek-t/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wojtek-t/subscriptions","organizations_url":"https://api.github.com/users/wojtek-t/orgs","repos_url":"https://api.github.com/users/wojtek-t/repos","events_url":"https://api.github.com/users/wojtek-t/events{/privacy}","received_events_url":"https://api.github.com/users/wojtek-t/received_events","type":"User","site_admin":false},"created_at":"2016-05-20T08:21:24Z","updated_at":"2016-05-20T08:21:24Z","body":"@mqliang - I would prefer to have them separate; #25342 is a bug fix that we will merge 1.3; index is a feature for which is too late to have it in 1.3"}}
{"actor":{"display_login":"wojtek-t"}}