One thing to keep in mind: your MacBook has a laptop hard drive. Even if it's 7200 rpm, you should expect it to be slower, of course, slower than even a modest server hard drive.
And even on a superfast machine, the django test suite explodes all database caches, as it rebuilds the database every time.
You can run unit tests in memory, although this is an order of magnitude faster:
Create a new testsettings.py file next to your settings.py applications, containing:
from projectname.settings import * DATABASE_ENGINE = 'sqlite3'
Then, when you want to run tests quickly, instead of manage.py test you run
manage.py test --settings=testsettings
More details here .
I also experimented with placing a MySQL database on a RAM disk. Unfortunately, I have not worked on Mac OS X.
(all of this assumes there is nothing wrong with your mysql configuration :)
source share