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

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.
主站蜘蛛池模板: 历史| 泾川县| 柞水县| 五大连池市| 彭山县| 县级市| 饶平县| 青阳县| 西贡区| 甘德县| 吴堡县| 揭阳市| 花莲县| 色达县| 密山市| 子长县| 上杭县| 贵南县| 太和县| 甘德县| 瑞丽市| 绥滨县| 宣威市| 太原市| 遂川县| 北海市| 康平县| 米易县| 牟定县| 尼勒克县| 将乐县| 上犹县| 济南市| 桓台县| 宜春市| 财经| 巴林右旗| 大冶市| 东乡县| 绥滨县| 金昌市|