Re: Slow down dev database transactions/second for testing?

2023-02-05 Thread Richard Brockie
On Sun, Feb 5, 2023 at 3:05 PM Erik Wienhold wrote: > > On 05/02/2023 23:17 CET Richard Brockie > wrote: > > > > I maintain a Django webapp that uses postgresql and can create > inefficient > > queries if I'm not careful. I'm looking for ways to mimic a congested db > > server in development to

Re: Slow down dev database transactions/second for testing?

2023-02-05 Thread Erik Wienhold
> On 05/02/2023 23:17 CET Richard Brockie wrote: > > I maintain a Django webapp that uses postgresql and can create inefficient > queries if I'm not careful. I'm looking for ways to mimic a congested db > server in development to expose these queries. pgbench is what your looking for: https://ww

Slow down dev database transactions/second for testing?

2023-02-05 Thread Richard Brockie
Hi, I maintain a Django webapp that uses postgresql and can create inefficient queries if I'm not careful. I'm looking for ways to mimic a congested db server in development to expose these queries. The configuration of postgresql is complicated - is there a simple method by which I could, for ex