官术网_书友最值得收藏!

Considering SSI transactions

On top of read committed and repeatable read, PostgreSQL offers serializable (or SSI) transactions. So, in all, PostgreSQL supports three isolation levels. Note that read uncommitted (which still happens to be the default in some commercial databases) is not supported: if you try to start a read uncommitted transaction, PostgreSQL will silently map to read committed. However, back to serializable.

The idea behind serializable is simple; if a transaction is known to work correctly if there is only a single user, it will also work in the case of concurrency if this isolation level is chosen. However, users have to be prepared; transactions may fail (by design) and error-out. In addition to that, a performance penalty has to be paid.

If you want to know more about this isolation level, consider checking out https://wiki.postgresql.org/wiki/Serializable.

Consider using serializable only when you have a decent understanding of what is going on inside the database engine.
主站蜘蛛池模板: 宁德市| 库车县| 新化县| 姜堰市| 横峰县| 昌邑市| 邹平县| 穆棱市| 高平市| 贵德县| 沙雅县| 宜章县| 泰宁县| 库伦旗| 大渡口区| 慈利县| 盐城市| 江源县| 岚皋县| 尉氏县| 东乡| 汝阳县| 高陵县| 诸暨市| 改则县| 义乌市| 康乐县| 邵东县| 曲阳县| 固安县| 开平市| 成安县| 北流市| 延边| 界首市| 鹤山市| 子长县| 股票| 禹州市| 黄梅县| 襄城县|