Created
October 13, 2021 09:57
-
-
Save sehrishnaz/0f3395814cfc8ea0197d29983e5faf0c 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
def split_list(self,alist, wanted_parts=1): | |
length = len(alist) | |
return [ alist[i*length // wanted_parts: (i+1)*length // wanted_parts] for i in range(wanted_parts) ] | |
if data: | |
A,B,C,D,E,F,G,H,I,J = split_list(data, wanted_parts=10) | |
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