Contributors mailing list archives

contributors@odoo-community.org

Avatar

Re: Speed up init of a database

by
Camptocamp SA, Simone Orsi
- 27/02/2020 17:00:05
Ciao Jordi,

we do 2 things to speed up builds:

1. we use travis cache to store and reuse DB dumps from previous build
2. as we use submodules we don't fetch them via git, we pull zip of the pinned hash


Point 2 could be improved by using python pkgs but we are not using them yet, but this is another story :)

Bests,

On Thu, Feb 27, 2020 at 5:32 PM Jordi Riera <jordi.riera@numigi.com> wrote:
Once again, awesome advice.
I will take a look at click-odoo for sure.
I will gather the team about the usage of templates for database. Seems promising.

Thank you again!
Jordi

Le mer. 26 févr. 2020 à 18:47, Daniel Reis <dreis@opensourceintegrators.com> a écrit :
For a specific customer CI you could consider using for database template an already initialized database. It would spare you the time of installing all the existing modules.
The CI build should then just upgrade the PR changed modules.

Just an idea 
Daniel

Jordi Riera <jordi.riera@numigi.com> escreveu em qua, 26/02/2020 às 19:52 :
Hello List,

The database of our clients is growing in number of modules. Our biggest database is 400+ modules now o.O
You can imagine that the init of the database is quite long. It takes actually 70% of the time in our CI.

I was wondering if you know some tricks to speed it up. Or alternatives to the brute force `odoo -i modules`. In my sweet dreams, I dream about modules that are installed in parallel or something like that.

What do you think? What did you already try?

Thank you list!

Jordi
--
Jordi Riera - VP Technique
NUMIGI SOLUTIONS INC.
(514) 317-7944

Longueuil, Québec, Canada

linkedinyoutubecustom-icontwitter

_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe

--
Thanks
Daniel

_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe



--
Jordi Riera - VP Technique
NUMIGI SOLUTIONS INC.
(514) 317-7944

Longueuil, Québec, Canada

linkedinyoutubecustom-icontwitter

_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe

Reference