Comment 7 for bug 1223243

Revision history for this message
Xavier (Open ERP) (xmo-deactivatedaccount) wrote :

> only the call to ir_model_data._update(), not taking into account the import stuff around

The import munging and analysis takes very little time, it's always the creation of complex objects in openerp which takes CPU time.

There's a test case in the server which imports ~1000 contacts (calling Model.load directly, not going through the import parsing and munging) and takes 25s on my machine, 24.6s being in res.partner's create or one of its callees. The problem is of course that openerp's object creation can be arbitrarily complex, and for some objects it does a lot of work checking stuff around or creating related and sub-objects, the import process itself can't do much about that.