4 ms·
As one example, Django handles test parallelism by creating N test databases (on the single test database server) and dividing tests into N runners. https://doc
by jdsleppy 5y ago
As one example, Django handles test parallelism by creating N test databases (on the single test database server) and dividing tests into N runners. https://docs.djangoproject.com/en/3.2/ref/django-admin/#envvar-DJANGO_TEST_PROCESSES https://docs.djangoproject.com/en/3.2/ref/django-admin/#envv...
You could also have multiple Docker containers running DBs.
- evandwight 5y agoThank you! That's so crazy!
- williamdclt 5y agoNot so crazy, it's very feasible to roll it yourself! Postgres has a "copy database" feature that's very useful (`CREATE DATABASE xxx WITH TEMPLATE yyy`). I saw a project on HN a while ago focused on "managing isolated PostgreSQL databases for your integration tests", never used it but looks like a good idea: https://github.com/allaboutapps/integresql https://github.com/allaboutapps/integresql