diff options
| author | Olivier Dony <odo@openerp.com> | 2014-08-13 13:26:22 +0200 |
|---|---|---|
| committer | Olivier Dony <odo@openerp.com> | 2014-08-13 13:47:50 +0200 |
| commit | 7aa0376f3ec6e7e8bf1c4fb6fb5581a6f18f985e (patch) | |
| tree | 60b61645c117972532dcc207a1924745a7d00447 /addons/web/static/src | |
| parent | 591326c54e8e5cf9acf3fcaaef8f76b0cbb6062c (diff) | |
[FIX] gamification: prohibitive record rule processing with many users/goals
Due to the multi-company record rule on gamification.goal,
each access to the Goals menu and each opening of the
Messaging menu (thus calling get_serialised_gamification_summary())
is extremely slow (with several thousands goals/users).
Adding auto_join to the user_id FK on goals makes it much
faster. However it causes crashes when reading the table
because the _order of gamification.goal uses `create_date`,
which becomes ambiguous after the auto_join with res_users.
Solving this can be done by re-implementing _read_flat()
in the ORM using the internal Query object, as in search(),
which takes care of fully-qualifying all column names.
Until this is fixed, a simple workaround is to use
start_date in the _order instead of collision-prone `create_date`.
Diffstat (limited to 'addons/web/static/src')
0 files changed, 0 insertions, 0 deletions
