{"action":"created","issue":{"url":"https://api.github.com/repos/flyerhzm/bullet/issues/147","labels_url":"https://api.github.com/repos/flyerhzm/bullet/issues/147/labels{/name}","comments_url":"https://api.github.com/repos/flyerhzm/bullet/issues/147/comments","events_url":"https://api.github.com/repos/flyerhzm/bullet/issues/147/events","html_url":"https://github.com/flyerhzm/bullet/issues/147","id":29502917,"number":147,"title":"Detects N+1, then says unused eager loading.  ","user":{"login":"CyborgMaster","id":1882579,"avatar_url":"https://avatars.githubusercontent.com/u/1882579?v=3","gravatar_id":"","url":"https://api.github.com/users/CyborgMaster","html_url":"https://github.com/CyborgMaster","followers_url":"https://api.github.com/users/CyborgMaster/followers","following_url":"https://api.github.com/users/CyborgMaster/following{/other_user}","gists_url":"https://api.github.com/users/CyborgMaster/gists{/gist_id}","starred_url":"https://api.github.com/users/CyborgMaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CyborgMaster/subscriptions","organizations_url":"https://api.github.com/users/CyborgMaster/orgs","repos_url":"https://api.github.com/users/CyborgMaster/repos","events_url":"https://api.github.com/users/CyborgMaster/events{/privacy}","received_events_url":"https://api.github.com/users/CyborgMaster/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2014-03-15T22:21:41Z","updated_at":"2015-02-18T14:51:50Z","closed_at":"2014-06-01T15:24:32Z","body":"I've got a query running on one of my pages that needs eager loading.  When I don't do any includes, Bullet correctly detects the N+1 query and displays the following warning:\r\n```\r\nuser: jeremy N+1 Query detected Appointment => [:practice] Add to your finder: :include => [:practice]\r\nuser: jeremy N+1 Query detected Appointment => [:patient] Add to your finder: :include => [:patient]\r\n```\r\n\r\nSo I add this line to the query:\r\n``` ruby\r\n.includes(:patient, practice: :ext)\r\n```\r\n\r\nBut then Bullet erroneously detects an unused eager loading and gives the following message:\r\n```\r\nuser: jeremy Unused Eager Loading detected Appointment => [:patient, :practice] Remove from your finder: :include => [:patient, :practice]\r\nuser: jeremy Unused Eager Loading detected Practice => [:ext] Remove from your finder: :include => [:ext]\r\n```\r\n\r\nAny idea why it might be doing this or where I should look to start debugging?"},"comment":{"url":"https://api.github.com/repos/flyerhzm/bullet/issues/comments/74876023","html_url":"https://github.com/flyerhzm/bullet/issues/147#issuecomment-74876023","issue_url":"https://api.github.com/repos/flyerhzm/bullet/issues/147","id":74876023,"user":{"login":"tborisova","id":1222952,"avatar_url":"https://avatars.githubusercontent.com/u/1222952?v=3","gravatar_id":"","url":"https://api.github.com/users/tborisova","html_url":"https://github.com/tborisova","followers_url":"https://api.github.com/users/tborisova/followers","following_url":"https://api.github.com/users/tborisova/following{/other_user}","gists_url":"https://api.github.com/users/tborisova/gists{/gist_id}","starred_url":"https://api.github.com/users/tborisova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tborisova/subscriptions","organizations_url":"https://api.github.com/users/tborisova/orgs","repos_url":"https://api.github.com/users/tborisova/repos","events_url":"https://api.github.com/users/tborisova/events{/privacy}","received_events_url":"https://api.github.com/users/tborisova/received_events","type":"User","site_admin":false},"created_at":"2015-02-18T14:51:50Z","updated_at":"2015-02-18T14:51:50Z","body":"I get this on Rails 3.0.20 and latest bullet version"}}