{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/8748","labels_url":"https://api.github.com/repos/laravel/framework/issues/8748/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/8748/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/8748/events","html_url":"https://github.com/laravel/framework/pull/8748","id":76529985,"number":8748,"title":"Add a facility to create WHERE ... IN (SELECT...) constraints for relationship queries (has(),  whereHas(), ...) to avoid full table scans.","user":{"login":"kaymes","id":3346993,"avatar_url":"https://avatars.githubusercontent.com/u/3346993?v=3","gravatar_id":"","url":"https://api.github.com/users/kaymes","html_url":"https://github.com/kaymes","followers_url":"https://api.github.com/users/kaymes/followers","following_url":"https://api.github.com/users/kaymes/following{/other_user}","gists_url":"https://api.github.com/users/kaymes/gists{/gist_id}","starred_url":"https://api.github.com/users/kaymes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaymes/subscriptions","organizations_url":"https://api.github.com/users/kaymes/orgs","repos_url":"https://api.github.com/users/kaymes/repos","events_url":"https://api.github.com/users/kaymes/events{/privacy}","received_events_url":"https://api.github.com/users/kaymes/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-14T23:52:53Z","updated_at":"2015-05-15T14:53:15Z","closed_at":"2015-05-15T14:53:15Z","pull_request":{"url":"https://api.github.com/repos/laravel/framework/pulls/8748","html_url":"https://github.com/laravel/framework/pull/8748","diff_url":"https://github.com/laravel/framework/pull/8748.diff","patch_url":"https://github.com/laravel/framework/pull/8748.patch"},"body":"Add a facility to create WHERE ... IN (SELECT...) constraints for relationship queries (has(),  whereHas(), ...) to avoid full table scans.\r\n\r\nSee #8720 for details.\r\n\r\nThe facility is implemented for belongsTo, BelongsToMany, HasOne and HasMany. Other relationship types (i.e. Morph*) are not implemented yet.\r\nThe code falls back to the old behaviour whenever the new query strategy is not applicable or implemented."},"comment":{"url":"https://api.github.com/repos/laravel/framework/issues/comments/102420194","html_url":"https://github.com/laravel/framework/pull/8748#issuecomment-102420194","issue_url":"https://api.github.com/repos/laravel/framework/issues/8748","id":102420194,"user":{"login":"taylorotwell","id":463230,"avatar_url":"https://avatars.githubusercontent.com/u/463230?v=3","gravatar_id":"","url":"https://api.github.com/users/taylorotwell","html_url":"https://github.com/taylorotwell","followers_url":"https://api.github.com/users/taylorotwell/followers","following_url":"https://api.github.com/users/taylorotwell/following{/other_user}","gists_url":"https://api.github.com/users/taylorotwell/gists{/gist_id}","starred_url":"https://api.github.com/users/taylorotwell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taylorotwell/subscriptions","organizations_url":"https://api.github.com/users/taylorotwell/orgs","repos_url":"https://api.github.com/users/taylorotwell/repos","events_url":"https://api.github.com/users/taylorotwell/events{/privacy}","received_events_url":"https://api.github.com/users/taylorotwell/received_events","type":"User","site_admin":false},"created_at":"2015-05-15T14:53:15Z","updated_at":"2015-05-15T14:53:15Z","body":"I think you're better off with a simple raw SQL query at this point."}}