{"action":"created","issue":{"url":"https://api.github.com/repos/OCA/OCB/issues/206","labels_url":"https://api.github.com/repos/OCA/OCB/issues/206/labels{/name}","comments_url":"https://api.github.com/repos/OCA/OCB/issues/206/comments","events_url":"https://api.github.com/repos/OCA/OCB/issues/206/events","html_url":"https://github.com/OCA/OCB/pull/206","id":69646150,"number":206,"title":"[8.0][FIX] prevent polynomial time filtering on document ids","user":{"login":"veloutin","id":356233,"avatar_url":"https://avatars.githubusercontent.com/u/356233?v=3","gravatar_id":"","url":"https://api.github.com/users/veloutin","html_url":"https://github.com/veloutin","followers_url":"https://api.github.com/users/veloutin/followers","following_url":"https://api.github.com/users/veloutin/following{/other_user}","gists_url":"https://api.github.com/users/veloutin/gists{/gist_id}","starred_url":"https://api.github.com/users/veloutin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/veloutin/subscriptions","organizations_url":"https://api.github.com/users/veloutin/orgs","repos_url":"https://api.github.com/users/veloutin/repos","events_url":"https://api.github.com/users/veloutin/events{/privacy}","received_events_url":"https://api.github.com/users/veloutin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-20T18:07:19Z","updated_at":"2015-04-20T20:12:37Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/OCA/OCB/pulls/206","html_url":"https://github.com/OCA/OCB/pull/206","diff_url":"https://github.com/OCA/OCB/pull/206.diff","patch_url":"https://github.com/OCA/OCB/pull/206.patch"},"body":"Upstream 8.0: https://github.com/odoo/odoo/pull/6396\r\n\r\nThis fix prevents the request from taking polynomial time when searching for a lot of documents. At 160k documents, this takes > 1 minute. With this change it is < 25ms.\r\n\r\nNote that since the web interface does a search_count when loading a page to get the total count, a search will always be done on all documents, triggering this."},"comment":{"url":"https://api.github.com/repos/OCA/OCB/issues/comments/94556838","html_url":"https://github.com/OCA/OCB/pull/206#issuecomment-94556838","issue_url":"https://api.github.com/repos/OCA/OCB/issues/206","id":94556838,"user":{"login":"coveralls","id":2354108,"avatar_url":"https://avatars.githubusercontent.com/u/2354108?v=3","gravatar_id":"","url":"https://api.github.com/users/coveralls","html_url":"https://github.com/coveralls","followers_url":"https://api.github.com/users/coveralls/followers","following_url":"https://api.github.com/users/coveralls/following{/other_user}","gists_url":"https://api.github.com/users/coveralls/gists{/gist_id}","starred_url":"https://api.github.com/users/coveralls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coveralls/subscriptions","organizations_url":"https://api.github.com/users/coveralls/orgs","repos_url":"https://api.github.com/users/coveralls/repos","events_url":"https://api.github.com/users/coveralls/events{/privacy}","received_events_url":"https://api.github.com/users/coveralls/received_events","type":"User","site_admin":false},"created_at":"2015-04-20T20:12:37Z","updated_at":"2015-04-20T20:12:37Z","body":"\n[![Coverage Status](https://coveralls.io/builds/2380665/badge)](https://coveralls.io/builds/2380665)\n\nCoverage decreased (-0.01%) to 33.3% when pulling **68e7c5e175c2f998be2a2a48c99b7ed4494d69b1 on savoirfairelinux:8.0_fix_document_search** into **9e3f96470154f6371648fde18e3726f26022f5ee on OCA:8.0**.\n"}}