{"action":"created","issue":{"url":"https://api.github.com/repos/drewolson/scrivener_ecto/issues/9","repository_url":"https://api.github.com/repos/drewolson/scrivener_ecto","labels_url":"https://api.github.com/repos/drewolson/scrivener_ecto/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/drewolson/scrivener_ecto/issues/9/comments","events_url":"https://api.github.com/repos/drewolson/scrivener_ecto/issues/9/events","html_url":"https://github.com/drewolson/scrivener_ecto/issues/9","id":179459759,"number":9,"title":"total_entries performance","user":{"login":"nlap","id":2924933,"avatar_url":"https://avatars.githubusercontent.com/u/2924933?v=3","gravatar_id":"","url":"https://api.github.com/users/nlap","html_url":"https://github.com/nlap","followers_url":"https://api.github.com/users/nlap/followers","following_url":"https://api.github.com/users/nlap/following{/other_user}","gists_url":"https://api.github.com/users/nlap/gists{/gist_id}","starred_url":"https://api.github.com/users/nlap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nlap/subscriptions","organizations_url":"https://api.github.com/users/nlap/orgs","repos_url":"https://api.github.com/users/nlap/repos","events_url":"https://api.github.com/users/nlap/events{/privacy}","received_events_url":"https://api.github.com/users/nlap/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-27T10:51:27Z","updated_at":"2016-09-28T12:19:11Z","closed_at":null,"body":"Any reason the DISTINCT needs to be a part of the total_entries count? The primary key will be unique.\r\n\r\n`select([m], count(field(m, ^primary_key), :distinct))`\r\n\r\nIt really kills performance versus a count() without distinct"},"comment":{"url":"https://api.github.com/repos/drewolson/scrivener_ecto/issues/comments/250150640","html_url":"https://github.com/drewolson/scrivener_ecto/issues/9#issuecomment-250150640","issue_url":"https://api.github.com/repos/drewolson/scrivener_ecto/issues/9","id":250150640,"user":{"login":"drewolson","id":3536,"avatar_url":"https://avatars.githubusercontent.com/u/3536?v=3","gravatar_id":"","url":"https://api.github.com/users/drewolson","html_url":"https://github.com/drewolson","followers_url":"https://api.github.com/users/drewolson/followers","following_url":"https://api.github.com/users/drewolson/following{/other_user}","gists_url":"https://api.github.com/users/drewolson/gists{/gist_id}","starred_url":"https://api.github.com/users/drewolson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drewolson/subscriptions","organizations_url":"https://api.github.com/users/drewolson/orgs","repos_url":"https://api.github.com/users/drewolson/repos","events_url":"https://api.github.com/users/drewolson/events{/privacy}","received_events_url":"https://api.github.com/users/drewolson/received_events","type":"User","site_admin":false},"created_at":"2016-09-28T12:19:11Z","updated_at":"2016-09-28T12:19:11Z","body":"@nlap yes, you're correct that joins would be a problem. At this point, I'd suggest creating a new elixir project that implements the `Scrivener.Paginator` protocol. When you like what you have (and can use it to solve your problems), let me know here. We can either pull it in to `scrivener_ecto` directly or make in another option that we link to from the [Scrivener](https://github.com/drewolson/scrivener) page."}}
{"actor":{"display_login":"drewolson"}}