yeriimii
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
      • Invitee
    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Versions and GitHub Sync Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
Invitee
Publish Note

Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

Your note will be visible on your profile and discoverable by anyone.
Your note is now live.
This note is visible on your profile and discoverable online.
Everyone on the web can find and read all notes of this public team.
See published notes
Unpublish note
Please check the box to agree to the Community Guidelines.
View profile
Engagement control
Commenting
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
  • Everyone
Suggest edit
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
Emoji Reply
Enable
Import from Dropbox Google Drive Gist Clipboard
   owned this note    owned this note      
Published Linked with GitHub
Subscribed
  • Any changes
    Be notified of any changes
  • Mention me
    Be notified of mention me
  • Unsubscribe
Subscribe
# Real MySQL 8.0 1권 스터디 - 대상: 5장 트랜잭션과 잠금 - 일시: 2024년 9월 22일 오후 8시 # 1조 참여자 - 옐리 - 샤피 # 일지 - 이해된 부분/이해되지 않은 부분 - 트랜잭션 - 샤피: 데이터 정합성 보장. 비슷한 데이터끼리 접근하는 작업들의 묶음. 해야하는 논리적 작업들을 완벽하게 수행하거나, 실패하면 모두 돌려놓는 '모 아니면 도' 기능. - 옐리: 논리적 작업들을 한 번에 수행하거나, 수행 중 실패했을 때 완벽하게 되돌려 놓는 기능. 그 기능에 의해 데이터 정합성이 보장된다. - 쿼리 자체에 TRY-CATCH 문을 사용할 수 있는 것인가? - SQL은 `try-catch` 문을 지원하지 않는다. - https://purumae.tistory.com/199- - 잠금 - 샤피: ~~정합성이 깨지지 않도록~~ 동시성을 제어하는 작업. -> 작업보다는 기능 - 옐리: `동시에 동일한 자원`에, `순서대로`, `변경`할 수 있게 하는 기능 - MySQL 엔진 수준의 잠금 - 글로벌 락 - `읽기 잠금`과 `쓰기 잠금`? - 모든 데이터베이스와 테이블에 잠금을 설정하는, 가장 범위가 큰 잠금 - 메타데이터 락 - 명시적으로 획득 x, `RENAME`문 같은 작업을 할 때 자동으로 획득하는 잠금 - 묵시적 테이블 락과의 차이점: - 메타데이터 락은 DDL 쿼리에 대해 트랜잭션과 상관없이 획득할 수 있는 잠금 - 로그 테이블 백업 예시 - 백업 작업 시작 이후에 쌓인 레코드는 어떻게 되지? - 테이블 락 - 명시적 락: READ/WRITE 둘 중에 하나를 획득할 수 있는 잠금 - 묵시적 락: InnoDB 기준 DML 제외한 DDL에 대해서 레코드 기반 잠금을 자동으로 획득/해제. - 네임드 락 - 상호 동기화 문제를 쉽게 해결해주는 잠금. - 중첩해서 획득할 수 있다. - InnoDB 스토리지 엔진 수준의 잠금 - 디스크에 접근하는 스토리지 엔진에서 제공하는 잠금 - 갭(gap) 락: a 레코드, c 레코드 사이에 새로운 레코드가 못들어가도록 막는 잠금. - 레코드 락: 레코드 자체에 잠금X, 인덱스의 레코드에 잠금 - 넥스트 키 락: 갭 락 + 레코드 락 - 자동 증가 락 (자동으로 획득/해제) - 8.0 버전 기준으로 사용 X => 래치(뮤텍스)를 사용 - 격리 수준 - READ UNCOMMITED - 더티 리드 발생 - non-repeatable read 발생 - pantom read 발생 - READ COMMITED - non-repeatable read 발생 - pantom read 발생 - REPEATABLE READ - pantom read 발생 (InnoDB는 발생 X) - SERIALIZABLE - 어떤 문제도 발생하지 않음 - 더티 리드 ![스크린샷 2024-09-22 오후 7.37.23](https://hackmd.io/_uploads/r11ZvKa60.png) - non-repeatable read ![스크린샷 2024-09-22 오후 7.37.50](https://hackmd.io/_uploads/BJIGvF6pA.png) - pantom read ![스크린샷 2024-09-22 오후 7.39.32](https://hackmd.io/_uploads/ByCzPKTpC.png) - 본인이 생각한 중요한 부분 - 동의하지 않는 부분 - 관련된 내용은 무엇이 있는지 - 문제 해결을 위한 더 좋은 방법은 없는지 위의 가이드 라인에 따라 토론하고, 기록해봅시다! # 소감 ## 옐리 - 시간 분배를 좀 더 잘하면 전체 내용에 대해 이해한 부분과 이해하지 못한 부분을 더 명확하게 체크할 수 있을 것 같습니다. - 시간 분배 상 책 외의 내용은 추가 시간을 이용해서 얘기하면 좋을 것 같습니다. ## 샤피 - 공부하면서 궁금했던 내용을 공유할 수 있는 상대가 생겨서 좋았다. - 시간 분배 저도 잘 하면 좋겠다 생각합니다.

Import from clipboard

Paste your markdown or webpage here...

Advanced permission required

Your current role can only read. Ask the system administrator to acquire write and comment permission.

This team is disabled

Sorry, this team is disabled. You can't edit this note.

This note is locked

Sorry, only owner can edit this note.

Reach the limit

Sorry, you've reached the max length this note can be.
Please reduce the content or divide it to more notes, thank you!

Import from Gist

Import from Snippet

or

Export to Snippet

Are you sure?

Do you really want to delete this note?
All users will lose their connection.

Create a note from template

Create a note from template

Oops...
This template has been removed or transferred.
Upgrade
All
  • All
  • Team
No template.

Create a template

Upgrade

Delete template

Do you really want to delete this template?
Turn this template into a regular note and keep its content, versions, and comments.

This page need refresh

You have an incompatible client version.
Refresh to update.
New version available!
See releases notes here
Refresh to enjoy new features.
Your user state has changed.
Refresh to load new user state.

Sign in

Forgot password

or

By clicking below, you agree to our terms of service.

Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
Wallet ( )
Connect another wallet

New to HackMD? Sign up

Help

  • English
  • 中文
  • Français
  • Deutsch
  • 日本語
  • Español
  • Català
  • Ελληνικά
  • Português
  • italiano
  • Türkçe
  • Русский
  • Nederlands
  • hrvatski jezik
  • język polski
  • Українська
  • हिन्दी
  • svenska
  • Esperanto
  • dansk

Documents

Help & Tutorial

How to use Book mode

Slide Example

API Docs

Edit in VSCode

Install browser extension

Contacts

Feedback

Discord

Send us email

Resources

Releases

Pricing

Blog

Policy

Terms

Privacy

Cheatsheet

Syntax Example Reference
# Header Header 基本排版
- Unordered List
  • Unordered List
1. Ordered List
  1. Ordered List
- [ ] Todo List
  • Todo List
> Blockquote
Blockquote
**Bold font** Bold font
*Italics font* Italics font
~~Strikethrough~~ Strikethrough
19^th^ 19th
H~2~O H2O
++Inserted text++ Inserted text
==Marked text== Marked text
[link text](https:// "title") Link
![image alt](https:// "title") Image
`Code` Code 在筆記中貼入程式碼
```javascript
var i = 0;
```
var i = 0;
:smile: :smile: Emoji list
{%youtube youtube_id %} Externals
$L^aT_eX$ LaTeX
:::info
This is a alert area.
:::

This is a alert area.

Versions and GitHub Sync
Get Full History Access

  • Edit version name
  • Delete

revision author avatar     named on  

More Less

Note content is identical to the latest version.
Compare
    Choose a version
    No search result
    Version not found
Sign in to link this note to GitHub
Learn more
This note is not linked with GitHub
 

Feedback

Submission failed, please try again

Thanks for your support.

On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

Please give us some advice and help us improve HackMD.

 

Thanks for your feedback

Remove version name

Do you want to remove this version name and description?

Transfer ownership

Transfer to
    Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

      Link with GitHub

      Please authorize HackMD on GitHub
      • Please sign in to GitHub and install the HackMD app on your GitHub repo.
      • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
      Learn more  Sign in to GitHub

      Push the note to GitHub Push to GitHub Pull a file from GitHub

        Authorize again
       

      Choose which file to push to

      Select repo
      Refresh Authorize more repos
      Select branch
      Select file
      Select branch
      Choose version(s) to push
      • Save a new version and push
      • Choose from existing versions
      Include title and tags
      Available push count

      Pull from GitHub

       
      File from GitHub
      File from HackMD

      GitHub Link Settings

      File linked

      Linked by
      File path
      Last synced branch
      Available push count

      Danger Zone

      Unlink
      You will no longer receive notification when GitHub file changes after unlink.

      Syncing

      Push failed

      Push successfully