Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

3

Speeding up Odoo v8 development

By
Miku Laitinen
on 1/5/15, 10:28 AM 1,160 views

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?

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!

Yenthe
on 1/5/15, 1:39 PM

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

Seba Schmidt
on 4/20/16, 11:10 AM

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

Yenthe
on 4/21/16, 3:04 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

3 follower(s)

Stats

Asked: 1/5/15, 10:28 AM
Seen: 1160 times
Last updated: 8/11/15, 11:45 AM