Daily updates from Odoo
Wednesday, April 22, 2015
1 change · master
Resolved issues and error corrections
Document searches now avoid a slow processing pattern that could make pages take over a minute to load when many records are present. This keeps document list counts and searches responsive even for very large document libraries.
Original PR description
This 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. Note 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.