Skip to content

Postgres performance within Docker #219

Answered by BretFisher
ilana7 asked this question in Q&A
Discussion options

You must be logged in to vote

Hmm, not sure I'm much help in psql tuning. I just follow internet guides for conf changes.

On your local machine, the query will be slower because it's running in a VM (Docker Desktop), which is always a bit slower than the host OS, particularly on macOS.

You can't really compare performance of running in Docker Desktop vs a server. What you can do, is compare one query to another on the same host after you've optimized db indexes and .conf settings.

On the server side, there wouldn't be any change in performance inside a container vs. outside a container because a Linux container is just running on the host OS Kernel with the same CPU/memory, and File I/O specs. DB query speed is often …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ilana7
Comment options

Answer selected by BretFisher
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants