Creating test databases in parallel

2020-04-01 Thread cool-RR
Hi guys, I'm trying to optimize our Django testing workflow. We have 7 different databases, and Django spends a lot of time on these lines: Creating test database for alias 'main_database'... Creating test database for alias 'foo_database'... Creating test database for alias 'bar_database'...

Re: Creating test databases in parallel

2020-04-01 Thread Motaz Hejaze
Long article somehow , but very informative ... https://realpython.com/python-concurrency/ On Wed, 1 Apr 2020, 11:25 am cool-RR, wrote: > Hi guys, > > I'm trying to optimize our Django testing workflow. > > We have 7 different databases, and Django spends a lot of time on these > lines: > > > C

Re: Creating test databases in parallel

2020-04-01 Thread Ram Rachum
This is a general article about concurrency in Python. I'm very good with concurrency in Python, I'm asking about a specific case here. On Wed, Apr 1, 2020 at 1:20 PM Motaz Hejaze wrote: > Long article somehow , but very informative ... > > https://realpython.com/python-concurrency/ > > On Wed,

Re: Creating test databases in parallel

2020-04-01 Thread Thomas Lockhart
If you are trying to optimize the test flow, then you may want to spend some time shrinking your test databases to a more manageable size. Or have two sets; abbreviated and full, with the larger one to exercise your (unknown) edge cases. hth - Tom > On Apr 1, 2020, at 2:25 AM, cool-RR wrote:

Re: Creating test databases in parallel

2020-04-02 Thread Ram Rachum
When you say "shrinking your test databases", what do you mean exactly? I'm a bit of a newbie on that part of Django. On Wed, Apr 1, 2020 at 8:13 PM Thomas Lockhart wrote: > If you are trying to optimize the test flow, then you may want to spend > some time shrinking your test databases to a mor