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

  • 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.
主站蜘蛛池模板: 简阳市| 辛集市| 扬中市| 垣曲县| 明溪县| 资中县| 天柱县| 驻马店市| 青龙| 古交市| 五台县| 涞源县| 阿克陶县| 稷山县| 巴彦县| 塔河县| 富川| 黄龙县| 保山市| 东方市| 高邮市| 通海县| 仲巴县| 怀化市| 和顺县| 兴安县| 铁力市| 合阳县| 肥东县| 克东县| 大方县| 乌兰察布市| 都安| 上高县| 于田县| 霞浦县| 海南省| 金溪县| 丁青县| 南投县| 太仓市|