加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

PostgreSQL:强制数据进入内存

发布时间:2020-12-13 16:21:17 所属栏目:百科 来源:网络整理
导读:有没有一种系统的方法来强制PostgreSQL将特定的表加载到内存中,或者至少从磁盘中读取它以便它将被系统缓存? 您可能会在 mailing lists topics中的一个中受到关注,它由Tom Lane(核心开发人员)回答: [..] But my opinion is that people who think they are
有没有一种系统的方法来强制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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读