6 points · by ravenkat · 11y ago · 6 comments
The issue we are facing is whenever we run `python manage.py migrate` after cloning the repo/pulling the repo, it takes around 30-50 mins.
Are you collapsing your migrations?
Unless you need to maintain multiple production environments with different versions of your software you should be doing so with some regularity.
Then if you want to load the database we have a shell script wrapper that can do a few things.
Load an sql from an s3 private bucket to refresh your local database, so even if you crash anything you can always fix things with a quick shell command. We also tie things into newrelic and sentry to help us debug code locally before it even gets to sandbox or prod.