PostgreSQL In Memory Database

前端 未结 4 1910
小蘑菇
小蘑菇 2021-01-31 05:04

I want to run my PostgreSQL database server from memory. The reason is that on my new server, I have 24 GB of memory, and hardly any of it is used.

I know I can run thi

4条回答
  •  隐瞒了意图╮
    2021-01-31 05:42

    The answer is caching. Look into adding memory to the server, then tuning PostgreSQL to maximize memory usage. Also, the file system cache will help with this, doing some of it automatically. You will be able to speed up performance, almost as if it were in memory except for the first hit, while not having to manage it yourself, and being able to have a database larger than the physical memory.

提交回复
热议问题