-
Notifications
You must be signed in to change notification settings - Fork 23k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[IMP] base,*: remove __last_update from all models #105739
[IMP] base,*: remove __last_update from all models #105739
Conversation
51c2505
to
0304d64
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM for mail part, thanks :)
@robodoo override=ci/security
|
f99f8a9
to
d00ee49
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're almost done. This is getting really nice!
d00ee49
to
e0e61c2
Compare
9d168c9
to
159f0ea
Compare
159f0ea
to
7094c2f
Compare
robodoo r+ |
@VincentSchippefilt linked pull request(s) odoo/upgrade#4038 not ready. Linked PRs are not staged until all of them are ready. |
The main goal of this commit is to reduce the size of the registry by removing the (almost) useless __last_update field. Statistics # of fields with all modules installed: before 30184 fields, 1299x last_update (4.30%) Before this commit, the computed field __last_update was added on every model. The idea behind this field was to have a computed field that had either the write_date or the create_date if the write_date was empty. However, the write_date is always written, even on creation, making it useless to have the computed field __last_update After this update, we completely remove from BaseModel: * __last_update * CONCURRENCY_CHECK_FIELD that was always defined as "__last_update" * _compute_concurrency_field that was the compute function for __last_update task-id: 3062140 (part of 3062137 improve registry load time)
7094c2f
to
c2f5268
Compare
@robodoo r+ |
The main goal of this commit is to reduce the size of the registry by removing the (almost) useless __last_update field. Statistics # of fields with all modules installed: before 30184 fields, 1299x last_update (4.30%) Before this commit, the computed field __last_update was added on every model. The idea behind this field was to have a computed field that had either the write_date or the create_date if the write_date was empty. However, the write_date is always written, even on creation, making it useless to have the computed field __last_update After this update, we completely remove from BaseModel: * __last_update * CONCURRENCY_CHECK_FIELD that was always defined as "__last_update" * _compute_concurrency_field that was the compute function for __last_update closes #105739 Task-id: 3062140 (part of 3062137 improve registry load time) Related: odoo/upgrade#4038 Related: odoo/enterprise#33939 Signed-off-by: Raphael Collet <rco@odoo.com>
The main goal of this commit is to reduce the size of the registry by
removing the (almost) useless __last_update field.
Statistics # of fields with all modules installed:
before 30184 fields, 1299x last_update (4.30%)
Before this commit, the computed field __last_update was added on every model.
The idea behind this field was to have a computed field that had either
the write_date or the create_date if the write_date was empty. However,
the write_date is always written, even on creation, making it useless
to have the computed field __last_update
After this update, we completely remove from BaseModel:
task-id: 3062140 (part of 3062137 improve registry load time)
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr