ट्रांज़ैक्शन आकार और PostgreSQL सुरक्षा

PostgreSQL में Transactions और Error Handling

Jason Myers

Principal Engineer

ट्रांज़ैक्शन छोटे रखें

  • {{1}} पर सोचना आसान
  • डेटाबेस परफॉर्मेंस
  • एरर डोमेन
PostgreSQL में Transactions और Error Handling

ऑपरेशनों को बाँटें

BEGIN TRANSACTION;

INSERT sales SET quantity=6 
WHERE name='chocolate chip';

INSERT baking_list SET quantity=12 
WHERE name='chocolate chip';

UPDATE inventory SET quantity = quantity - 6 
WHERE name='oatmeal dark chocolate';

COMMIT;
PostgreSQL में Transactions और Error Handling

क्या यह ट्रांज़ैक्शन है?

UPDATE cookies SET deliciousness = 11 WHERE name = 'Ginger Molasses';
PostgreSQL में Transactions और Error Handling

सेलेक्ट्स का क्या?

SELECT deliciousness FROM cookies where name = 'ANZAC';
PostgreSQL में Transactions और Error Handling

अभ्यास करते हैं!

PostgreSQL में Transactions और Error Handling

Preparing Video For Download...