0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【#26 エンジニア転職学習】DB入門 MySQLトランザクション

Posted at

はじめに

富山県に住んでいるChikaといいます。
毎日投稿を目標に、バックエンドエンジニア転職に向けた学習内容をアウトプットします。

DBの入門をざっくり学習していきます。

バックエンドエンジニアになるまでの学習内容は以前投稿した以下の記事を基にしています。

本日の学習内容

本日はRDBMS(MySQL)のトランザクションに関して学習しました。

  • トランザクション ←Topics!!

トランザクション

トランザクションとは

複数のクエリをひとまとまりにした実行単位。現在DBMSで主流になっている「MVCC」という仕組みで利用することができる。
ACIDという4つの特性を持っている。

ACID特性

  • Atomicity(原子性)
    • 一連のデータ操作が「全部成功」か「全部失敗」を保証する
  • Consistency(一貫性)
    • 一連のデータ操作前後でそれらの状態を保つことを保証する
  • Idolation(分離性)
    • それぞれの処理が矛盾なく行えることを保証する
    • ANSIで分離レベルは4つ定義されている(RU, RC, RR, Serializeble)
  • Durability失われない
    • 操作の完了通知後、その操作が永続的となり効果が失われない

使用している教材はこちら↓

おわりに

最後までお読みいただきありがとうございました。
アドバイス・応援コメント等いただけますと幸いです。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?