微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

PostgreSQL:强制数据进入内存

有没有一种系统的方法来强制Postgresql将特定的表加载到内存中,或者至少从磁盘中读取它以便它将被系统缓存?
您可能会在 mailing lists topics中的一个中受到关注,它由Tom Lane(核心开发人员)回答:

[..] But my opinion is that people who
think they are smarter than an LRU
caching algorithm are typically
mistaken. If the table is all that
heavily used,it will stay in memory
just fine. If it’s not sufficiently
heavily used to stay in memory
according to an LRU algorithm,maybe
the memory space really should be
spent on something else. [..]

你可能也会在一个SO问题中被强调:https://stackoverflow.com/questions/486154/postgresql-temporary-tables,也许更适合https://stackoverflow.com/questions/407006/need-to-load-the-whole-postgresql-database-into-the-ram

原文地址:https://www.jb51.cc/postgresql/192301.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐