diff options
| author | Richard Mathot <rim@odoo.com> | 2020-02-19 14:57:45 +0000 |
|---|---|---|
| committer | Richard Mathot <rim@odoo.com> | 2020-02-24 09:44:25 +0000 |
| commit | ecd9610ef634d1c96076bde2f2d91328620a7ba7 (patch) | |
| tree | 9998a66e0f3fc235ae0b10265a2ffd0da3499e18 /odoo | |
| parent | b997684b062bb1010c52f4af49f72f2be570e392 (diff) | |
[FIX] point_of_sale: faster UI search on products
In the POS interface, when searching through a large catalog of
products (~80000 in our test), the interface used to freeze for 5-10
seconds before returning search results.
After profiling the issue, we noticed that the unaccent'ing of product
names was done in the search loop.
Moving the unaccent outside the search loop (at product catalog
initialization) solves the issue.
We also change the timer before triggering a search: 70 ms after any
keypress is too short. In practice, this would trigger a search at every keypress.
200 ms appears to be a good compromise between UI interactivity and
saving useless computations
opw-2185087-rim
fixes 9ee9724a10fc5e835d8d42da0e9e83fe687848d8
closes odoo/odoo#46040
X-original-commit: b5e01b48c32ad91e3e3df25917d035e36f97c6d2
Signed-off-by: Richard Mathot (rim) <rim@openerp.com>
Diffstat (limited to 'odoo')
0 files changed, 0 insertions, 0 deletions
