Dealing with Big Data in odoo’s Python

I got a scenario where I have to read an excel file from the external storage of client on daily basis. That excel file contains at-least one million transactions. I have to create invoices and payments against those transactions on daily basis.

My Plan:

My plan of execution is that I’ll read the file and convert it into a panda data-frame. Make changes in the name of columns so that they can match the technical names of the fields in odoo. After that I’ll convert the data-frame in one list of dictionaries. And create records in my own model in odoo by postgresql create querry to hold all transactions as raw data.

In next step I’ll run a crone job that will convert all those transaction into payments and invoices. i.e Use SQL create query to create invoices and payments.

Questions:

1). When I am reading data from excel should I set some limit. i.e that only 10,000 line should be executed in one go. Like create dataframe of 10,000 excel lines at first and then create records and move to next 10,000 line. I need a suggestion that should I go for a specific number of lines of read the whole file at once.

2). When I am creating the records in odoo. I am planing to use database create query and give list of dictionary as data stream to create records. Is that a right approach? The best way to create bulk records in odoo is through create query or any other way. Pls keep note of a fact that I have millions of transactions in excel file.

3). The approach of creating records as raw data first and then convert them to invoices and payments is a correct approach or should we go for direct creation of invoices and payments. If yes then how? It is depended on transaction type that we need to create a payment or invoice.

4). In case when I need to create invoice then surly I have to do that with create query of postgresql, How I can create and invoice with a query that will create invoice and its lines at the same time and quickly?

5). What would be a quick and reliable method to post bulk invoices and payments?

6). The odoo is hosted on odoo.sh and the version is 16. I am planning to add some workers for this process and will do this process in midnight when the system is not in use. Is there a facility provided by odoo which will allow me to assign a number of workers to a specific piece of code?

That might be possible that I haven’t provided with exact information, if something is missing then pls ask me questions. i’ll replay asap.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật