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

  • Mastering PostgreSQL 10
  • Hans Jürgen Sch?nig
  • 163字
  • 2021-06-30 19:03:51

Considering SSI transactions

On top of read committed and repeatable read, PostgreSQL offers Serializable Snapshot Isolation (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. Let us get back to the serializable isolation level.

The idea behind serializable is simple; if a transaction is known to work correctly when there is only a single user, it will also work in the case of concurrency when this isolation level is chosen. However, users have to be prepared; transactions may fail (by design) and error-out. In addition to this, 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.
主站蜘蛛池模板: 库车县| 长白| 拉孜县| 加查县| 临邑县| 离岛区| 石家庄市| 永春县| 马山县| 六盘水市| 探索| 丰台区| 嘉义市| 扶风县| 融水| 乡宁县| 界首市| 顺义区| 中江县| 开阳县| 铅山县| 友谊县| 昌江| 怀仁县| 阿瓦提县| 聂荣县| 光泽县| 嘉义市| 浠水县| 广丰县| 永登县| 崇仁县| 钦州市| 曲阳县| 炉霍县| 定日县| 玉龙| 安庆市| 贺州市| 武邑县| 穆棱市|