Created
October 13, 2021 09:57
-
-
Save sehrishnaz/7c736d886eb70879cfcdab134230cf16 to your computer and use it in GitHub Desktop.
Use Multi Threading to Seed Up Processing in Odoo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A_calculation = threading.Thread(target=self._run_process, args=(self.id, A)) | |
B_calculation = threading.Thread(target=self._run_process, args=(self.id, B)) | |
C_calculation = threading.Thread(target=self._run_process, args=(self.id, C)) | |
D_calculation = threading.Thread(target=self._run_process, args=(self.id, D)) | |
. | |
. | |
. | |
. | |
. | |
J_calculation = threading.Thread(target=self._run_process, args=(self.id, J)) | |
A_calculation.start() | |
B_calculation.start() | |
C_calculation.start() | |
D_calculation.start() | |
. | |
. | |
. | |
. | |
J_calculation.start() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use Multi Threading to Seed Up Processing in Odoo