-
-
Notifications
You must be signed in to change notification settings - Fork 752
[16.0][IMP] stock_quant_manual_assign: Improve assign_quants() performance #2312
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
base: 16.0
Are you sure you want to change the base?
[16.0][IMP] stock_quant_manual_assign: Improve assign_quants() performance #2312
Conversation
5e5fec8
to
01efa4d
Compare
01efa4d
to
58873d2
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.
@AungKoKoLin1997 Thanks for this. Could you add tests that cover the move lines to unlink case ?
58873d2
to
737a57a
Compare
stock_quant_manual_assign/tests/test_stock_quant_manual_assign.py
Outdated
Show resolved
Hide resolved
737a57a
to
755307c
Compare
755307c
to
3780f83
Compare
stock_quant_manual_assign/tests/test_stock_quant_manual_assign.py
Outdated
Show resolved
Hide resolved
stock_quant_manual_assign/tests/test_stock_quant_manual_assign.py
Outdated
Show resolved
Hide resolved
b1d2cfc
to
cdaa609
Compare
Previously, when there were hundreds of quants assigned to a stock move, it would take a very long time for assign_quants() to complete, as the system would try to reassign all selected quants. This commit mitigates the issue by identifying only the necessary changes — specifically, the move lines to be unlinked and the quant lines to be assigned — so that updates are made only to those records. Co-Authored-By: Yoshi Tashiro <tashiro@quartile.co>
cdaa609
to
ad5b398
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.
@rousseldenis Could you please review the PR? |
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
This PR has the |
Previously, when there were hundreds of quants assigned to a stock move, it would take a very long time for assign_quants() to complete, as the system would try to reassign all selected quants.
This PR mitigates the issue by identifying only the necessary changes — specifically, the move lines to be unlinked and the quant lines to be assigned — so that updates are made only to those records.
@qrtl QT5295