
Explore practical methods to import large data sets into Odoo, from staging databases and CSP files to automated add-ons and engine-based integrations for faster performance.
Analyze the datasource structure of employees, salaries, and departments to map one-to-many and one-to-one relations, including a junction table for employee and department links before importing large datasets into Odoo.
Create a wizard model in Odoo to import a large number of employee records quickly, detailing setup of the Python module, action method, and user interface flow.
Test and install the addon in Odoo by configuring the module grid, verifying no errors, and iterating on the employee configuration and related menus as you define the method.
Establish a database connection by importing the skill connector package, defining host, user, password, and database constants, and using the connection handler to connect to the employees database.
Showcases method 3 test result by importing 300,000 employee records into odoo in about one minute, highlighting a significant speed improvement and timing checks.
Troubleshoot and test the import workflow in Odoo for large data, ensuring updates replace existing records rather than creating duplicates by using timestamp changes, incremental updates, and update-on-insert logic.
Do you have Odoo implementation cases to regularly import a huge amount of data from external data source like MS SQL, Oracle, MySQL, etc? I meant, very huge, like million of invoices or journal entries record per day ?
Using the common standard way, the Odoo's XMLRPC and ORM, this process can take hours, if not timeout, while we are taking a few cups of coffee as Odoo suggests :)
This course explains in detail about techniques to improve the data import performance, starting from data source query, processing in Python, and processing in Odoo Database (PostgreSQL) to achieve a drastic performance increase, that was previously taking more than 10 hours to only seconds! Yes, seconds.. how can it be ? Is that possible ?
YES
And we have implemented this technique in many implementation cases where Odoo's default mechanism is no more capable to handle that million of records per day!
Enjoy !