{"action":"created","issue":{"url":"https://api.github.com/repos/odoo/odoo/issues/6611","labels_url":"https://api.github.com/repos/odoo/odoo/issues/6611/labels{/name}","comments_url":"https://api.github.com/repos/odoo/odoo/issues/6611/comments","events_url":"https://api.github.com/repos/odoo/odoo/issues/6611/events","html_url":"https://github.com/odoo/odoo/pull/6611","id":74017219,"number":6611,"title":"[FIX] website_membership: perf, pagination","user":{"login":"nle-odoo","id":9977887,"avatar_url":"https://avatars.githubusercontent.com/u/9977887?v=3","gravatar_id":"","url":"https://api.github.com/users/nle-odoo","html_url":"https://github.com/nle-odoo","followers_url":"https://api.github.com/users/nle-odoo/followers","following_url":"https://api.github.com/users/nle-odoo/following{/other_user}","gists_url":"https://api.github.com/users/nle-odoo/gists{/gist_id}","starred_url":"https://api.github.com/users/nle-odoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nle-odoo/subscriptions","organizations_url":"https://api.github.com/users/nle-odoo/orgs","repos_url":"https://api.github.com/users/nle-odoo/repos","events_url":"https://api.github.com/users/nle-odoo/events{/privacy}","received_events_url":"https://api.github.com/users/nle-odoo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"beledouxdenis","id":5822488,"avatar_url":"https://avatars.githubusercontent.com/u/5822488?v=3","gravatar_id":"","url":"https://api.github.com/users/beledouxdenis","html_url":"https://github.com/beledouxdenis","followers_url":"https://api.github.com/users/beledouxdenis/followers","following_url":"https://api.github.com/users/beledouxdenis/following{/other_user}","gists_url":"https://api.github.com/users/beledouxdenis/gists{/gist_id}","starred_url":"https://api.github.com/users/beledouxdenis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beledouxdenis/subscriptions","organizations_url":"https://api.github.com/users/beledouxdenis/orgs","repos_url":"https://api.github.com/users/beledouxdenis/repos","events_url":"https://api.github.com/users/beledouxdenis/events{/privacy}","received_events_url":"https://api.github.com/users/beledouxdenis/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-05-07T15:01:58Z","updated_at":"2015-05-08T07:02:21Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/odoo/odoo/pulls/6611","html_url":"https://github.com/odoo/odoo/pull/6611","diff_url":"https://github.com/odoo/odoo/pull/6611.diff","patch_url":"https://github.com/odoo/odoo/pull/6611.patch"},"body":"This fixes :\r\n * pagination only on /members and sometimes with bad page count,\r\n * free members could not be searched (were always all displayed),\r\n * all elements are displayed even if there is a pagination,\r\n * for members without country, errors happened in some use case,\r\n * when too much locations were on a map (>2000) it failed.\r\n\r\nAnd also as performance improvemnts:\r\n * only query all partners when the map is enabled (customize > left\r\n   world map),\r\n * limit partners put on the map to 2000 (even then it's a lot for\r\n   google maps),\r\n * don't browse all membership_line to get res_partner but use a query.\r\n\r\nopw-634653"},"comment":{"url":"https://api.github.com/repos/odoo/odoo/issues/comments/100128217","html_url":"https://github.com/odoo/odoo/pull/6611#issuecomment-100128217","issue_url":"https://api.github.com/repos/odoo/odoo/issues/6611","id":100128217,"user":{"login":"nle-odoo","id":9977887,"avatar_url":"https://avatars.githubusercontent.com/u/9977887?v=3","gravatar_id":"","url":"https://api.github.com/users/nle-odoo","html_url":"https://github.com/nle-odoo","followers_url":"https://api.github.com/users/nle-odoo/followers","following_url":"https://api.github.com/users/nle-odoo/following{/other_user}","gists_url":"https://api.github.com/users/nle-odoo/gists{/gist_id}","starred_url":"https://api.github.com/users/nle-odoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nle-odoo/subscriptions","organizations_url":"https://api.github.com/users/nle-odoo/orgs","repos_url":"https://api.github.com/users/nle-odoo/repos","events_url":"https://api.github.com/users/nle-odoo/events{/privacy}","received_events_url":"https://api.github.com/users/nle-odoo/received_events","type":"User","site_admin":false},"created_at":"2015-05-08T07:02:21Z","updated_at":"2015-05-08T07:02:21Z","body":"all comment should be addressed, I also added a [SUPERUSER_ID in the request on res.partner](https://github.com/odoo-dev/odoo/commit/3e5507b0523ad5ab2c6f8998b43ce2f424993272?diff=split#diff-ca09ccdcee1d1858d12146bb9f0d04f5R57) since as guest the country list was always only `All countries 0`."}}