MySQL + SQL · Lesson 86

DBMS में Concurrency Control

Concurrency Control क्या है?

Concurrency control एक साथ चलते कई transactions को manage करता है ताकि वे shared data खराब न करें। इसके बिना एक ही row edit करते दो users एक-दूसरे को overwrite कर सकते हैं।

यह जो समस्याएं रोकता है

  • Lost update — एक update दूसरे को overwrite करे।
  • Dirty read — uncommitted data पढ़ना।
  • Inconsistent read — transaction के बीच data बदलना।

यह कैसे काम करता है

मुख्यतः locking (transaction अपनी rows lock करता है) और isolation levels से जो control करते हैं कि एक transaction दूसरे का क्या देखे।

सारांश

  • Concurrency control एक साथ चलते transactions को सुरक्षित रखता है।
  • Lost updates, dirty reads रोकता है; locking और isolation levels use करता है।
🔗

Share this topic with a friend

यह topic किसी दोस्त को भेजें

Found it useful? Send it to a classmate learning the same thing.

अच्छा लगा? जो दोस्त यही सीख रहा है, उसे भेज दीजिए।