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

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.
主站蜘蛛池模板: 定襄县| 鄂托克旗| 舞阳县| 洞口县| 西畴县| 抚州市| 游戏| 安仁县| 柘荣县| 通城县| 黔南| 土默特右旗| 玛纳斯县| 兰考县| 耿马| 永胜县| 新沂市| 尉犁县| 宿迁市| 华阴市| 泸溪县| 靖江市| 宁明县| 泸州市| 枞阳县| 贵州省| 顺义区| 翼城县| 平山县| 吉安县| 红原县| 岢岚县| 青冈县| 太白县| 铜山县| 韶关市| 张掖市| 和田市| 康定县| 扶绥县| 濮阳市|