Transcript for:
ट्रांजेक्शन प्रोसेसिंग की जानकारी

हेलो स्टूडेंट वेलकम टू वर चैनल सीएस इंजीनेरिंग ज्ञान आज के डीबी में इसके टूटोरियल में हम लोग ट्रांजेक्शन प्रोसेसिंग स्टार्ट करें हैं जिसमें हम लोग सबसे पहले ट्रांजेक्शन देखेंगे अच्छा होता है क्या है वह कौन से इसके ऑपरेशन होते ट्रांजेक्शन के सो इसमें आपका ट्रांजेक्शन प्रोस तो transaction system क्या होता है? आपका collection of operations that form a single logic unit of work are called as a transaction. एक बहुत सारे collection of operations में एक single unit of task आपका जो perform होता है, उसको हम लोग transaction कहते हैं, और इसका mainly use जो होता है, banking sector में होता है, जब आप money transfer होती है, एक account से दूसरे account में, कैसे वो transfer होता है, तो वो सारा process आपका transaction processing के through होता है आपका. A transaction is a unit of program execute that access and possibly update various data item.

जब भी आपका transaction होता है तो बहुत सारे आपके operation जो होते हैं वो update होते हैं जिसके तुरू आपका proper transaction जो है perform होता है transaction is defined as the logical unit of database processing that include one or more database access operation इसमें एक से ज़्यादा आपके database accessing operation होता है so जब भी आपका transaction होता है इसमें दो operation आपके perform होते हैं transaction की अगर हम लोग बात करें transaction तो operation होता है एक तो होता है read और दूसरा operation होता है आपका right read का meaning क्या होता है read operation perform करने के लिए बाद आप कितना भी transaction कर सकते हैं और जैसी आपका write operation होगा तो transaction वहाँ पर complete हो जाएगा तो ये आपका दो operation इसमें important है so read, read operation is used to read the value of the account x from the database and store in a buffer in the main memory मतलब ये read करेगा, दिखे इसने क्या किया, माली जी read operation आपने perform किया तो ये क्या करेगा, जो data है आपका वो memory से ठाएगा और buffer में store कर देगा बफर में आपका पूर्ट स्टोर कर देगा डेटा को उसके बाद जो ट्राइट ऑपरेशन क्या करता है वह बफर से जो भी आपने अपडेट किया होगा उसको दुबारा से कहां आपकी मीन मेमोरी में ही क्या कर देता है स्टोर कर देता है तो यह प्रोसेस आपका read किया x को, उसके बाद x में से 500 रुपे reduce किये, and उसके बाद write कर दिया x को, तो इस type से अगर transaction आपका perform करना है, तो वो आपका होता है read and write operation, इसको आप इस type से भी लिख सकते हैं, देखें मेरे पास दो account है, एक transaction t1 है, एक t2 है, t में सबसे पहले read yx, x के account से हमने 500 रुपी जो है, वो loss कर दिया है, यह आपका है, उसके बाद आपने write कर दिया x को, मतलब x की money transfer हुई 500 उसके बाद write मतलब अब जो x के पास माली जी initially x के पास 1000 रुपीज थे and यहाँ पर हम लोग दूसरी value लेंगे y, y के लिए हम लोग ले लेते हैं उसके पास भी 1000 रुपीज है यह दो account हैं आपके, एक x है, transaction हो रहा है आपका तो अबी जो, इसके बाद जो x के पास अभी बचे हैं, वो बचे हैं आपके 500 रुपीज क्योंकि 500 इसने reduce कर दें, उसके बार write अब इसके बाद यहाँ पर क्या हुआ, read हुआ आपका y y read हुआ, y ने क्या किया जो पांसो रुपे x ने reduce किये थे वो इसने accept करें और उसके बाद y आपका क्या हो गया right हो गया y so अब जो है x के बास तो 500 रुपीज बचे हैं और y के बास आपके हो गये हैं 1500 रुपे so 1500 जो है वो रुपीज हो चुके हैं अब y के बास तो इस type से जो transaction होता है उसी को आपका transaction processing बोलते हैं और read और write operation ही जो होते हैं वो important होते हैं यहाँ पर पूरा condition मैंने वही चीज write up किये है दिखे let assume x before starting of transaction is 4000, initially this transaction before this it had 4000, so first operation read x, so that value is stored in buffer, see first of all x, let's talk about this operation, read x, so x's memory, let's say here it had 4000 rupees, और यहाँ पर आपके read up हो गए हैं 4000 रुपीज उसके बाद second operation में आपने क्या किया x equal to x minus 500 यानि यहाँ से reduce कर दिये 500 तो आप बचे हैं आपके पास वो minus 500 आपने किये और इसमें जो बच गए हैं वो बच गए हैं 3500 रुपीज ना उसके बाद आप जैसे right operation perform करेंगे तो यह 3500 इसको call back हो जाएंगे बताओ आप जो x के पास बचेगा वो बचेगा आपका 3500 रुपीज तो updation हो जाएगा आपका right के बाद तो यही process होता है जाता है आपका transaction में but it may be possible that because of the अगर आपका failure नहीं होता है ये तभी possible है जब आपका proper तरीके से execute हो अगर failure perform हो जाता है तो उस case में आपका ये roll back की condition आती है for example if the given transaction the debit transaction fail after execution operation 2 देखे operation 2 के बाद fail हो गया मतलब यहाँ पर x तो reduce हो उसके बाद ये fail हो गया तो उस condition में क्या होग पर कभी क्या होता है आपको पास message आता है कि ATM से पैसे निकल गए हैं, actually आपके पास पैसे निकलते नहीं हैं, तो आपके पास बाद में वो roll back हो जाते हैं rupees, तो वो ही condition होती है आपकी इसमें, roll backing की condition, इस problem को solve करने के लिए दो हमारे पास operation है, एक तो है commit, commit का मतब होता है जब processing कैसे work perform करता है ये तो basic introduction था आपका thank you student