{"action":"created","issue":{"url":"https://api.github.com/repos/schubergphilis/sbp_mremoteng/issues/1","labels_url":"https://api.github.com/repos/schubergphilis/sbp_mremoteng/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/schubergphilis/sbp_mremoteng/issues/1/comments","events_url":"https://api.github.com/repos/schubergphilis/sbp_mremoteng/issues/1/events","html_url":"https://github.com/schubergphilis/sbp_mremoteng/pull/1","id":56548120,"number":1,"title":"replace regular search with partial_search speeds up the cookbook","user":{"login":"jvanlieshout","id":5285665,"avatar_url":"https://avatars.githubusercontent.com/u/5285665?v=3","gravatar_id":"","url":"https://api.github.com/users/jvanlieshout","html_url":"https://github.com/jvanlieshout","followers_url":"https://api.github.com/users/jvanlieshout/followers","following_url":"https://api.github.com/users/jvanlieshout/following{/other_user}","gists_url":"https://api.github.com/users/jvanlieshout/gists{/gist_id}","starred_url":"https://api.github.com/users/jvanlieshout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvanlieshout/subscriptions","organizations_url":"https://api.github.com/users/jvanlieshout/orgs","repos_url":"https://api.github.com/users/jvanlieshout/repos","events_url":"https://api.github.com/users/jvanlieshout/events{/privacy}","received_events_url":"https://api.github.com/users/jvanlieshout/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-02-04T16:14:32Z","updated_at":"2015-02-09T14:21:45Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/schubergphilis/sbp_mremoteng/pulls/1","html_url":"https://github.com/schubergphilis/sbp_mremoteng/pull/1","diff_url":"https://github.com/schubergphilis/sbp_mremoteng/pull/1.diff","patch_url":"https://github.com/schubergphilis/sbp_mremoteng/pull/1.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/schubergphilis/sbp_mremoteng/issues/comments/73515623","html_url":"https://github.com/schubergphilis/sbp_mremoteng/pull/1#issuecomment-73515623","issue_url":"https://api.github.com/repos/schubergphilis/sbp_mremoteng/issues/1","id":73515623,"user":{"login":"jvanlieshout","id":5285665,"avatar_url":"https://avatars.githubusercontent.com/u/5285665?v=3","gravatar_id":"","url":"https://api.github.com/users/jvanlieshout","html_url":"https://github.com/jvanlieshout","followers_url":"https://api.github.com/users/jvanlieshout/followers","following_url":"https://api.github.com/users/jvanlieshout/following{/other_user}","gists_url":"https://api.github.com/users/jvanlieshout/gists{/gist_id}","starred_url":"https://api.github.com/users/jvanlieshout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvanlieshout/subscriptions","organizations_url":"https://api.github.com/users/jvanlieshout/orgs","repos_url":"https://api.github.com/users/jvanlieshout/repos","events_url":"https://api.github.com/users/jvanlieshout/events{/privacy}","received_events_url":"https://api.github.com/users/jvanlieshout/received_events","type":"User","site_admin":false},"created_at":"2015-02-09T14:21:45Z","updated_at":"2015-02-09T14:21:45Z","body":"I couldn't help benchmarking it just out of curiosity. The difference is even bigger then I thought :wink:.\r\n\r\n```ruby\r\nrequire \"benchmark\"\r\n => true\r\n\r\ntime = Benchmark.measure do\r\nhosts = search(:node, 'name:*')\r\nend\r\n => 137.719000  13.031000 150.750000 (152.015698)\r\nputs time\r\n137.719000  13.031000 150.750000 (152.015698)\r\n => nil\r\n\r\ntime = Benchmark.measure do\r\nhosts = partial_search(:node,\r\n                          \"name:*\",\r\n                          :keys => {\r\n                          'hostname' => ['hostname'],\r\n                          'name' => ['name'],\r\n                          'os' => ['os'],\r\n                          'domain' => ['domain'],\r\n                          'env' => ['chef_environment'],\r\n                          'ipaddress' => ['ipaddress']\r\n                          })\r\nend\r\n =>   0.016000   0.000000   0.016000 (  0.312500)\r\nputs time\r\n  0.016000   0.000000   0.016000 (  0.312500)\r\n => nil\r\n```\r\n\r\nBy the way, what exactly do you mean with?\r\n> So one inline comment is left...."}}