PostgreSQL 非持久化设置(Non-Durable Settings)
Durability is a database feature that guarantees the recording of committed transactions even if the server crashes or loses power. However, durability adds significant database overhead, so if your site does not require such a guarantee, PostgreSQL can be configured to run much faster. The following are configuration changes you can make to improve performance in such cases. Except as noted below,durability is still guaranteed in case of a crash of the database software; only abrupt operating system stoppage creates a risk of data loss or corruption when these settings are used.
• Place the database cluster’s data directory in a memory-backed file system (i.e. RAM disk). This
eliminates all database disk I/O, but limits data storage to the amount of available memory (and perhaps swap).
• Turn off fsync; there is no need to flush data to disk.
• Turn off synchronous_commit; there might be no need to force WAL writes to disk on every commit.
This setting does risk transaction loss (though not data corruption) in case of a crash of the
database.
• Turn off full_page_writes; there is no need to guard against partial page writes.
• Increase checkpoint_segments and checkpoint_timeout ; this reduces the frequency of checkpoints,
but increases the storage requirements of /pg_xlog.
• Create unlogged tables to avoid WAL writes, though it makes the tables non-crash-safe.
[root@DELL-R720 data]# cat /proc/cpuinfo| grep "physical id"| sort| uniq| wc -l
2
[root@DELL-R720 data]# cat /proc/cpuinfo| grep "cpu cores"| uniq
cpu cores : 6
[root@DELL-R720 data]# cat /proc/cpuinfo| grep "processor"| wc -l
24
[root@DELL-R720 data]# cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c
24 Intel(R) Xeon(R) CPU E5-2620 v2 @ 2.10GHz
PostgreSQL 非持久化设置(Non-Durable Settings)的更多相关文章
- JMS学习(五)--ActiveMQ中的消息的持久化和非持久化 以及 持久订阅者 和 非持久订阅者之间的区别与联系
		一,消息的持久化和非持久化 ①DeliveryMode 这是传输模式.ActiveMQ支持两种传输模式:持久传输和非持久传输(persistent and non-persistent deliver ... 
- RabbitMQ学习笔记(6)----RabbitMQ 持久化和非持久化
		持久化:将交换机或队列数据保存到磁盘,服务器宕机或重启之后依然存在. 非持久化:将交换机或队列的数据保存到内存中,服务器宕机或重启之后数据将不存在. 在RabbitMQ中也提供了持久化和非持久化方式. ... 
- JMS开发步骤和持久化/非持久化Topic消息
		------------------------------------------------ 开发一个JMS的基本步骤如下: 1.创建一个JMS connection factory 2.通过co ... 
- redisd的非持久化配置
		如何关闭redis持久化?我的需求是只把redis当作缓存来用,所以持久化到硬盘对我的需求来说没有意义. 修改redis配置文件,redis.conf 第115行左右. 1.注释掉原来的持久化规则 # ... 
- 【配置】检测到在集成的托管管道模式下不适用的ASP.NET设置的解决方法(非简单设置为【经典】模式)。
		× 检测到在集成的托管管道模式下不适用的ASP.NET设置的解决方法(非简单设置为[经典]模式). 我们将ASP.NET程序从IIS6移植到IIS7,可能运行提示以下错误: HTTP 错误 5 ... 
- 安卓 logcat设置 Android logcat Settings
		安卓 logcat设置 Android logcat Settings 作者:韩梦飞沙 Author:han_meng_fei_sha 邮箱:313134555@qq.com E-mail: 3131 ... 
- 【转】检测到在集成的托管管道模式下不适用的ASP.NET设置的解决方法(非简单设置为【经典】模式)。
		检测到在集成的托管管道模式下不适用的ASP.NET设置的解决方法(非简单设置为[经典]模式). 我们将ASP.NET程序从IIS6移植到IIS7,可能运行提示以下错误: HTTP 错误 500.23 ... 
- RabbitMQ持久化和非持久化
		但是,非持久化要比持久化速度更快. 队列是否需要持久化:看需求 
- echarts  markLine 辅助线非直线设置
		效果图: 用例option: option = { title: { text: '未来一周气温变化', subtext: '纯属虚构' }, tooltip: { trigger: 'axis' } ... 
随机推荐
- jquery循环绑定事件
			<html> <head> <title></title> <script type="text/javascript" sr ... 
- buffer overflow vulnerabilitie
			Computer Systems A Programmer's Perspective Second Edition Avoiding security holes.For many years,bu ... 
- Why Apache Beam? A data Artisans perspective
			https://cloud.google.com/dataflow/blog/dataflow-beam-and-spark-comparison https://github.com/apache/ ... 
- Flink - Juggling with Bits and Bytes
			http://www.36dsj.com/archives/33650 http://flink.apache.org/news/2015/05/11/Juggling-with-Bits-and-B ... 
- OneDrive无法正常登录
			可能是DNS被污染 手动设置DNS 134.170.108.26 onedrive.live.com134.170.108.152 skyapi.onedrive.live.com 
- opencv提取截获图像(总结摘来)
			opencv提取截获图像(总结摘来) http://blog.csdn.net/wuxiaoyao12/article/details/7305865 版权声明:本文为博主原创文章,未经博主允许不得转 ... 
- Lambda中的一些方法的总结
			public List<UserInfoBaseModel> GetNameByIDList(List<int> UserID) { var UserList = LoadRe ... 
- 【C51】单片机中断
			引言 其实人的一生和单片机的运行很类似.就拿人的一生来说:有些事只需要做一次,比如得了水痘以后,体内产生免疫,以后就不会再生这个病了.有些事需要反复做,比如反复读书,反复工作,反复与困苦打交道,反复地 ... 
- php--yii2框架错误提示
			if($code!=200){ $user=new UserAuth(); $user->mobile=$register['mobile']; $user->password=md5($ ... 
- SQL学习笔记 SQL ORDER BY 关键字
			SELECT column_name,column_nameFROM table_nameORDER BY column_name,column_name ASC|DESC; SELECT id, n ... 
