Postgre Image could be faster

docker
postgresql
performance

#1

The circleci/postgres image is using regular persistent storage on disk. Using a tmpfs for example would make tests run MUCH faster and would even cost you less resources :slight_smile:

I created a Dockerfile for my own project which reduced the time our tests take to run from 130s to 27s with just one simple line. You should consider adding it to your recommended image.

Dockerfile:

FROM circleci/postgres
ENV PGDATA /dev/shm/pgdata/data

So the PGDATA env should be exported in your recommended version maybe. Any thoughts on that?


Postgres with in memory DB
#2

Thank you for this suggestion. We’ll look into getting this incorporated as soon as possible.


#4