15 - Concurrency Control Theory (CMU Intro to Database Systems / Fall 2022)

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 พ.ย. 2024

ความคิดเห็น • 7

  • @agkhall
    @agkhall 11 หลายเดือนก่อน +3

    This is one of the rawest intros to a recorded lecture I think I've ever seen.

  • @jamalhasanov2270
    @jamalhasanov2270 ปีที่แล้ว

    How does the T1 proceeeded by the T2 at 43:46 yield A=960, B=1160? I guess it was possible if we had T2, then T1.

    • @mephistotel87
      @mephistotel87 ปีที่แล้ว +1

      It's an error on the slide. The left schedule and write one should produce the same result (the same effect), otherwise the are not eqiuvalent.

  • @MikeSpectre-y9i
    @MikeSpectre-y9i ปีที่แล้ว

    Does the statement 'at 13:12, the strawman system is correct' hold true? Even if it only performs a single transaction, there is still a possibility of issues arising if the operations within the transaction access or modify the same record simultaneously. or am I missing something??

    • @andypavlo
      @andypavlo ปีที่แล้ว +5

      Almost every DBMSs will execute queries within the same txn in sequential order. There are some optimizations you can do if you know there are no dependencies between queries in the txn (e.g., if they touch different tables, or if they need to run on different nodes). But you can only do this if the DBMS *knows* what queries the DBMS will execute ahead of time (e.g., in a UDF or stored procedure).

    • @Shwed1982
      @Shwed1982 2 หลายเดือนก่อน

      assumption is that a transaction does not do two things simultaneously by itself.

  • @longhtr
    @longhtr 10 หลายเดือนก่อน

    Example #2 💀