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

  • Mastering PostgreSQL 12
  • Hans Jürgen Sch?nig
  • 167字
  • 2021-08-20 10:00:22

Considering Serializable Snapshot Isolation transactions

On top of read committed and repeatable read, PostgreSQL offers Serializable Snapshot Isolation (SSI) transactions. So, overall, 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's get back to the serializable isolation level.

If you want to know more about this isolation level, consider checking ou h t t p s :// w i k i . p o s t g r e s q l . o r g / w i k i / S e r i a l i z a b l e.

The idea behind serializable isolation 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.

Consider using serializable isolation only when you have a decent understanding of what is going on inside the database engine.
主站蜘蛛池模板: 广东省| 天津市| 新民市| 泗洪县| 孝昌县| 肇源县| 麻阳| 乌鲁木齐市| 望都县| 云安县| 柏乡县| 玉林市| 乌拉特中旗| 南汇区| 松阳县| 丹东市| 荆州市| 延川县| 五台县| 舒城县| 会理县| 牟定县| 天门市| 宣城市| 东山县| 平和县| 资溪县| 泰和县| 宁津县| 仙游县| 健康| 襄汾县| 甘谷县| 屏山县| 武平县| 无极县| 旬邑县| 自贡市| 汪清县| 内江市| 淮安市|