Help

3

Speeding up Odoo v8 development

Avatar
Miku Laitinen

I'm used to restart Odoo server during module development every time I change a .py or .xml file. This is how I did it with OpenERP v7 and continued the same method in Odoo v8.

I was excited to learn about the new --auto-reload switch of odoo.py but unfortunately it didn't speed up the development a bit, quite the contrary really. This is because starting the Odoo v8 server takes so much longer than v7. I thought --auto-reload wouldn't do a full reload of the server, but apparently that's exactly what it does. The log is filled with "Create fields._column" entries:

2015-01-05 15:23:15,497 26684 DEBUG dev8 openerp.fields: Create fields._column for Field ir.cron.user_id
2015-01-05 15:23:15,497 26684 DEBUG dev8 openerp.fields: Create fields._column for Field ir.cron.name
2015-01-05 15:23:15,498 26684 DEBUG dev8 openerp.fields: Create fields._column for Field ir.cron.args
2015-01-05 15:23:15,498 26684 DEBUG dev8 openerp.fields: Create fields._column for Field ir.cron.numbercall
2015-01-05 15:23:15,499 26684 DEBUG dev8 openerp.fields: Create fields._column for Field ir.cron.nextcall
2015-01-05 15:23:15,499 26684 DEBUG dev8 openerp.fields: Create fields._column for Field ir.cron.priority
2015-01-05 15:23:15,500 26684 DEBUG dev8 openerp.fields: Create fields._column for Field ir.cron.create_date
2015-01-05 15:23:15,500 26684 DEBUG dev8 openerp.fields: Create fields._column for Field ir.cron.doall
2015-01-05 15:23:15,500 26684 DEBUG dev8 openerp.fields: Create fields._column for Field ir.cron.write_date
2015-01-05 15:23:15,501 26684 DEBUG dev8 openerp.fields: Create fields._column for Field ir.cron.active
2015-01-05 15:23:15,501 26684 DEBUG dev8 openerp.fields: Create fields._column for Field ir.cron.interval_number
2015-01-05 15:23:15,502 26684 DEBUG dev8 openerp.fields: Create fields._column for Field ir.cron.write_uid
2015-01-05 15:23:15,502 26684 DEBUG dev8 openerp.fields: Create fields._column for Field ir.cron.model
2015-01-05 15:23:15,508 26684 DEBUG dev8 openerp.fields: Create fields._column for Field workflow.transition.create_uid
2015-01-05 15:23:15,509 26684 DEBUG dev8 openerp.fields: Create fields._column for Field workflow.transition.sequence
2015-01-05 15:23:15,510 26684 DEBUG dev8 openerp.fields: Create fields._column for Field workflow.transition.write_uid
2015-01-05 15:23:15,510 26684 DEBUG dev8 openerp.fields: Create fields._column for Field workflow.transition.signal
2015-01-05 15:23:15,511 26684 DEBUG dev8 openerp.fields: Create fields._column for Field workflow.transition.trigger_model

... about a million times.

Is there a way to speed up launching the Odoo server without disabling the debug logging?

3 Comments
Avatar
Discard

I'm actually quite curious about this too. On a sidenote, in V9 you will not need to reload the whole server and all files. They will create a new ORM which will automaticly load in all changes! Which means no restarting and reloading and no downtime!

Avatar
Seba Schmidt
-

@Yenthe Did this happen in v9? If not, is it on the agenda for v10?

@Seba it is not in V9 and there hasn't been any mention about this anymore, so I guess they silently dropped the idea.