جميع الكتب

مهني

1 Markets I: The Ecosystem and Exchange-Traded Marketsالأسواق عبر الإنترنت 2 Markets II: Rates, FX and Creditالأسواق عبر الإنترنت 3 Markets III: Commodities, Energy and Cryptoالأسواق عبر الإنترنت 4 Quantitative Methodsالأساليب عبر الإنترنت 5 Derivatives and Volatilityالمشتقات عبر الإنترنت 6 Rates, Credit, XVA and Riskالفائدة والائتمان والمخاطر عبر الإنترنت 7 Research Craft: Predictors, Backtests, Measurement, Portfoliosالبحث عبر الإنترنت 8 Strategies I: Equities and Futuresالاستراتيجيات عبر الإنترنت 9 Strategies II: Volatility, Relative Value, Macro and the Bank Desksالاستراتيجيات عبر الإنترنت 10 Microstructure and Executionالتنفيذ عبر الإنترنت 11 Market Making and High-Frequency Tradingصناعة السوق عبر الإنترنت 12 Machine Learning for Marketsتعلم الآلة عبر الإنترنت 13 Low-Latency Softwareالتكنولوجيا عبر الإنترنت 14 Networks, Hardware and Trading Infrastructureالتكنولوجيا عبر الإنترنت 15 Research, Data and Risk Platformsالتكنولوجيا عبر الإنترنت 16 The Desk and the Firmالشركة عبر الإنترنت 17 The Industry: Firms, Roles and Careersالمسارات المهنية عبر الإنترنت 18 Interviews I: Maths, Probability and Speedالمسارات المهنية عبر الإنترنت 19 Interviews II: Markets, Trading Games and the Final Roundالمسارات المهنية عبر الإنترنت 20 Interviews III: Codeالمسارات المهنية عبر الإنترنت
التطبيقات حول المدرب تسجيل الدخول ابدأ القراءة

Computer Science · المسرد

ما معنى Multiversion concurrency control, snapshot isolation, serialisable snapshot isolation؟

يُعرف أيضًا باسم: multiversion concurrency control · snapshot isolation · serialisable snapshot isolation

Definition 23.6 University Computer Science — Year 3 · الفصل 23 — Concurrency Control and Recovery

Under multiversion concurrency control each item keeps several versions, each tagged with the commit timestamp of the transaction that wrote it. Under snapshot isolation a transaction reads, for each item, the newest version committed before it started, together with its own writes; two transactions are concurrent when each starts before the other commits, and of two concurrent transactions that write the same item, the second to commit aborts (first committer wins). Serialisable snapshot isolation adds a check at commit that aborts a transaction in a dangerous structure: one where it has read an item that a concurrent transaction writes, and has written an item that a concurrent transaction read.

Write skew under snapshot isolation. Each transaction reads the snapshot taken at its start, so neither sees the other’s write; the items written are different, so both commit. The dashed arrows are the two read–write antidependencies, from T_1’s read of B to T_2’s write of it and from T_2’s read of A to T_1’s write; one each way, they form the cycle that serialisable snapshot isolation looks for.
Write skew under snapshot isolation. Each transaction reads the snapshot taken at its start, so neither sees the other’s write; the items written are different, so both commit. The dashed arrows are the two read–write antidependencies, from T1T_1’s read of BB to T2T_2’s write of it and from T2T_2’s read of AA to T1T_1’s write; one each way, they form the cycle that serialisable snapshot isolation looks for.
اقرأ في الفصل →