TIL
-
2024.07.12 포프TIL 2024. 7. 12. 23:24
회의가 끝나고 똑같은 질문을 하는 것을 멈추려면 회의에 집중하고 기록하자. 1인분을 하려면 1.2인분을 해야 한다. 협업은 돕고 돕는 것이며, 도움을 받을 줄도, 줄 줄도 알아야 한다. 고무 오리 디버깅 - 위키백과, 우리 모두의 백과사전위키백과, 우리 모두의 백과사전. 코드 검토를 위해 개발자가 사용하는 고무 오리 소프트웨어 공학에서 고무 오리 디버깅(영어: rubber duck debugging)은 코드를 디버깅하는 방법이다. 이름은 《실용ko.wikipedia.org
-
2024.07.10~11 Query TuningTIL 2024. 7. 11. 23:33
쿼리 튜닝을 해야 하는 일이 있다. 쿼리에서 불필요한 join이 있는지 확인하고 삭제 처리를 하자.group by 절까지 삭제가 가능할 수 있다.임시 테이블 사용 가능성이 있어 삭제할 수 있음 하자group by 절이 내부적으로 어떻게 동작하는가? -> 공부 필요count 쿼리의 성능 저하페이징 기능 구현 중 count 쿼리가 필요하다데이터가 증가하면 할수록 count 쿼리가 느려진다index를 사용함에 불구하고 느리다클러스터드 인덱스 값을 사용하게 되면 더 느린데 이유는 무엇인가인덱스 값뿐 아니라 저장된 데이터까지 읽어야 하기 때문인가커버링 인덱스수정 대상이 검색 쿼리다. 조건절이 많은 join과 연관이 있고 동적으로 변화된다.커버링 인덱스를 설계할 수 있을까? 조건의 순서를 정하고 인덱스를 설계해야 ..
-
2024.07.09 locking IntroductionTIL 2024. 7. 9. 23:16
https://dev.mysql.com/blog-archive/innodb-data-locking-part-1-introduction/ MySQL :: InnoDB Data Locking - Part 1 "Introduction"In this blog series, I’d like to introduce you gently to the topic on which I was working last 2 years, which is improving how InnoDB locks data (tables and rows) in order to provide illusion to clients that their queries are executed one after another,dev.mysql.com음inn..
-
2024.07.07 How to Minimize and Handle DeadlocksTIL 2024. 7. 7. 23:10
https://dev.mysql.com/blog-archive/innodb-data-locking-part-1-introduction/ MySQL :: InnoDB Data Locking - Part 1 "Introduction"In this blog series, I’d like to introduce you gently to the topic on which I was working last 2 years, which is improving how InnoDB locks data (tables and rows) in order to provide illusion to clients that their queries are executed one after another,dev.mysql.com앞의 글..
-
2024.07.04~06 deadlock detectionTIL 2024. 7. 7. 00:36
https://dev.mysql.com/blog-archive/innodb-data-locking-part-3-deadlocks/ MySQL :: InnoDB Data Locking – Part 3 "Deadlocks"In this blog series, I’m describing how InnoDB locks data (tables and rows) in order to provide illusion to clients that their queries are executed one after another, and how this was improved in recent releases. In InnoDB Data Locking – Part 1 “Indev.mysql.com음 읽고 있는데 많이 길다..
-
2024.07.01 wait-for-graphTIL 2024. 7. 1. 22:54
Wait For Graph Deadlock Detection in Distributed System - GeeksforGeeksA Computer Science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions.www.geeksforgeeks.org데드락 감지 알고리즘 중 하나인 wait-for-graph. 단일 노드에서 사용할 수 있다.자원 그래프에서 순환고리가 발견된다면 데드락 상태이다.자원 요청 시 모든 자원에..
-
2024.06.30TIL 2024. 6. 30. 14:48
https://dev.mysql.com/blog-archive/innodb-data-locking-part-3-deadlocks/ MySQL :: InnoDB Data Locking – Part 3 "Deadlocks"In this blog series, I’m describing how InnoDB locks data (tables and rows) in order to provide illusion to clients that their queries are executed one after another, and how this was improved in recent releases. In InnoDB Data Locking – Part 1 “Indev.mysql.comhttps://dung-b..
-
2024.06.29 deadlockTIL 2024. 6. 29. 15:40
MySQL :: MySQL 5.7 Reference Manual :: 14.7.5.3 How to Minimize and Handle Deadlocks14.7.5.3 How to Minimize and Handle Deadlocks This section builds on the conceptual information about deadlocks in Section 14.7.5.2, “Deadlock Detection”. It explains how to organize database operations to minimize deadlocks and the subsequent errordev.mysql.com데드락은 일어날 수 있는 일이고 항상 가능성을 열어두어라.매번 트랜잭션을 실행할 수 없다면 문..