Hi,
since migrating to V14 executing “bench migrate” runs several minutes. At first one execution took 4 - 5 minutes, currently it lasts 8 - 9 minutes.
I’m using bench 5.17.2 and have these 4 apps intalled:
erpituc 13.34.0 (our own app)
erpnext 14.39.0
frappe 14.49.0
hrms 14.10.6
Obvious reasons checked:
hooks.py: after_migrate-hook in our app is empty.
patches: run fast and display success message within seconds
Is this normal? If you use V14 I would like to know how long it takes in your environment to run “bench migrate”.
Please reply.
While running “bench migrate” the system is not overly stressed:
Found it. We are working with fixtures and exported 324 custom fields for 33 doctypes. Removing fixtures\custom-fields.json speeds up “bench migrate” to less than 30 seconds.
I also exported all customizations manually:
Went to List View / Form View of desired DocType
Clicked […] > Customize
Clicked [Actions] > Export Customization
Selected my app as “Module to Export”
Then in hooks.py I excluded ‘Custom Field’ from fixtures. For future customizations we will also export manually as described above.