{"action":"created","issue":{"url":"https://api.github.com/repos/doctrine/mongodb-odm/issues/1112","labels_url":"https://api.github.com/repos/doctrine/mongodb-odm/issues/1112/labels{/name}","comments_url":"https://api.github.com/repos/doctrine/mongodb-odm/issues/1112/comments","events_url":"https://api.github.com/repos/doctrine/mongodb-odm/issues/1112/events","html_url":"https://github.com/doctrine/mongodb-odm/pull/1112","id":83048356,"number":1112,"title":"Prime references only from eagerCursor","user":{"login":"alcaeus","id":383198,"avatar_url":"https://avatars.githubusercontent.com/u/383198?v=3","gravatar_id":"","url":"https://api.github.com/users/alcaeus","html_url":"https://github.com/alcaeus","followers_url":"https://api.github.com/users/alcaeus/followers","following_url":"https://api.github.com/users/alcaeus/following{/other_user}","gists_url":"https://api.github.com/users/alcaeus/gists{/gist_id}","starred_url":"https://api.github.com/users/alcaeus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alcaeus/subscriptions","organizations_url":"https://api.github.com/users/alcaeus/orgs","repos_url":"https://api.github.com/users/alcaeus/repos","events_url":"https://api.github.com/users/alcaeus/events{/privacy}","received_events_url":"https://api.github.com/users/alcaeus/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/doctrine/mongodb-odm/labels/task","name":"task","color":"006b75"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/doctrine/mongodb-odm/milestones/8","html_url":"https://github.com/doctrine/mongodb-odm/milestones/1.0.0-BETA14","labels_url":"https://api.github.com/repos/doctrine/mongodb-odm/milestones/8/labels","id":1121816,"number":8,"title":"1.0.0-BETA14","description":"","creator":{"login":"jmikola","id":244663,"avatar_url":"https://avatars.githubusercontent.com/u/244663?v=3","gravatar_id":"","url":"https://api.github.com/users/jmikola","html_url":"https://github.com/jmikola","followers_url":"https://api.github.com/users/jmikola/followers","following_url":"https://api.github.com/users/jmikola/following{/other_user}","gists_url":"https://api.github.com/users/jmikola/gists{/gist_id}","starred_url":"https://api.github.com/users/jmikola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmikola/subscriptions","organizations_url":"https://api.github.com/users/jmikola/orgs","repos_url":"https://api.github.com/users/jmikola/repos","events_url":"https://api.github.com/users/jmikola/events{/privacy}","received_events_url":"https://api.github.com/users/jmikola/received_events","type":"User","site_admin":false},"open_issues":29,"closed_issues":5,"state":"open","created_at":"2015-05-20T18:55:14Z","updated_at":"2015-06-08T21:58:26Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-05-31T09:17:59Z","updated_at":"2015-06-08T21:59:22Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/doctrine/mongodb-odm/pulls/1112","html_url":"https://github.com/doctrine/mongodb-odm/pull/1112","diff_url":"https://github.com/doctrine/mongodb-odm/pull/1112.diff","patch_url":"https://github.com/doctrine/mongodb-odm/pull/1112.patch"},"body":"This PR fixes a potential performance issue introduced with #1068. When using reference primers with non-eager cursors, the query would be executed multiple times, sometimes producing inconsistent results.\nUsing reference priming now implies using an eager cursor. Using eagerCursor = false and reference primers will result in an error.\n\nUnfortunately, this re-introduces an issue described in #520, where calling ```getSingleResult()``` on a cursor with reference primers will always prime the entire result set."},"comment":{"url":"https://api.github.com/repos/doctrine/mongodb-odm/issues/comments/110154111","html_url":"https://github.com/doctrine/mongodb-odm/pull/1112#issuecomment-110154111","issue_url":"https://api.github.com/repos/doctrine/mongodb-odm/issues/1112","id":110154111,"user":{"login":"jmikola","id":244663,"avatar_url":"https://avatars.githubusercontent.com/u/244663?v=3","gravatar_id":"","url":"https://api.github.com/users/jmikola","html_url":"https://github.com/jmikola","followers_url":"https://api.github.com/users/jmikola/followers","following_url":"https://api.github.com/users/jmikola/following{/other_user}","gists_url":"https://api.github.com/users/jmikola/gists{/gist_id}","starred_url":"https://api.github.com/users/jmikola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmikola/subscriptions","organizations_url":"https://api.github.com/users/jmikola/orgs","repos_url":"https://api.github.com/users/jmikola/repos","events_url":"https://api.github.com/users/jmikola/events{/privacy}","received_events_url":"https://api.github.com/users/jmikola/received_events","type":"User","site_admin":false},"created_at":"2015-06-08T21:59:22Z","updated_at":"2015-06-08T21:59:22Z","body":"Making a note that we should follow up on #1112 later on to see if this actually resolves the increased query load."}}