diff options
| author | Romain Derie <rde@odoo.com> | 2020-03-26 18:06:39 +0000 |
|---|---|---|
| committer | Romain Derie <rde@odoo.com> | 2020-03-26 18:12:47 +0000 |
| commit | bd4a44cece6cc51d7358ec3861633bb53db53005 (patch) | |
| tree | e4d16f59522fe880a1b1711f761ec51b82ea30ac /addons/web/static/src/js/views/basic | |
| parent | 2c09e00a64a6f565d56c16c0b72549bc6c680b6a (diff) | |
[IMP] base: perf - try/except instead of exists
Most of the time, the record exists, but we still ensure it does, every single
time, making an SQL query.
Doing a try catch will result in the same behavior, but won't make that query
most of the time.
task-2211013
Diffstat (limited to 'addons/web/static/src/js/views/basic')
0 files changed, 0 insertions, 0 deletions
