컴퓨터
-
[Angular, RxJS] 트러블슈팅 사례와 놓치기 쉬운 주요 팁컴퓨터/Angular 2025. 7. 17. 12:03
트러블슈팅* [Angular, RxJS] POST 후 GET, 최신 데이터를 받아오지 못한 이슈 수정https://ksj12172.tistory.com/1533 놓치기 쉬운 팁* RadioControlValueAccessor (https://angular.dev/api/forms/RadioControlValueAccessor#)여러 개 선택지가 있고, 그 중 하나의 값을 고르는 UI에서 쓸 수 있다. input.type="radio"를 쓰고 formControl을 연결하면 구현해야 할 기능이 줄어든다. 예를 들어, checked 값을 따로 주지 않아도 된다. checked property에 값을 넘기기 위해 equality 체크하던 코드가 필요없어진다!
-
[Angular, RxJS] POST 후 GET, 최신 데이터를 받아오지 못한 이슈 수정컴퓨터/Angular 2025. 7. 17. 11:49
* switchMap으로 http.post나 http.delete를 하고subscribe에서 http.get을 하면 확률은 적으나 최신 get을 못 받는 상황이 생길 수 있다.someEvent$.pipe( switchMap(eventData => this.http.post('/api/some-url', eventData))).subscribe(postResult => { // 이 GET 요청은 바깥쪽 switchMap의 통제를 받지 않습니다. this.http.get('/api/other-url').subscribe(getResult => { this.data = getResult; });}); post 요청 1 => get 요청 1 => post 요청 2 => switchMap이라 post..
-
[Real MySQL 8.0] 4.1 MySQL 엔진 아키텍처컴퓨터/DB, SQL 2025. 7. 7. 00:11
출처: 백은빈, 이성욱 저, 『Real MySQL 8.0』, 위키북스 4.1 MySQL 엔진 아키텍처 4.1.1 MySQL의 전체 구조 프로그래밍 API MySQL 엔진(커넥션 핸들러 / SQL 인터페이스, SQL 파서, SQL 옵티마이저, 캐시 & 버퍼)스토리지 엔진 API (InnoDB, MyISAM, Memory)운영체제 하드웨어 (데이터 파일, 로그 파일, 디스크) * MySQL 엔진 + 스토리지 엔진 => MySQL, 혹은 MySQL 서버라고 표현한다.MySQL 엔진은 하나스토리지 엔진은 여러 개 동시 사용 가능 MySQL 엔진 처리 영역: SQL 파서/옵티마이저/쿼리 실행기쿼리 실행기에서 GROUP BY, ORDER BY 등 처리스토리지 엔진 처리 영역: 데이터 읽기/쓰기 하나의 쿼리 작업은 ..
-
Transactions - Isolation Levels컴퓨터/DB, SQL 2025. 6. 29. 16:48
https://www.edx.org/learn/sql/stanford-university-databases-advanced-topics-in-sql StanfordOnline: Databases: Advanced Topics in SQL | edXThis course is one of five self-paced courses on the topic of Databases, originating as one of Stanford's three inaugural massive open online courses released in the fall of 2011. The original "Databases" courses are now all available on edx.org. This courwww...
-
Introduction to Transactions (edX StanfordOnline databases: Advanced Topics in SQL)컴퓨터/DB, SQL 2025. 6. 22. 18:42
🔹 1. 트랜잭션이 중요한 이유 (두 가지 동기)동시성 문제 (Concurrency)여러 클라이언트가 동시에 데이터베이스에 접근하면 충돌/불일치 가능예: 같은 데이터를 동시에 수정하면 일부 변경 사항이 덮어씌워질 수 있음시스템 장애 복구 (System Failures)예: 작업 도중 시스템 다운 → 데이터 중복/누락 등 불일치 발생 * different levels where inconsistency can occur (1) signle attributemultiple client가 같은 어트리뷰트에 대해 작업하면 문제가 생길 수 있다.데이터를 읽고(get), 수정하고(modify), 다시 저장하는(put) 과정을 서로 엇갈리게(interleave) 수행할 수 있다면,3가지 final value가 가능..
-
indexes (edX stanfordOnline databases: Adbanced Topics in SQL)컴퓨터/DB, SQL 2025. 6. 22. 16:59
* indexes = indices * Users don't access indexes; they're used underneath by the query execution engine.indexes might allow the query execution engine to speed up processingT.A에 인덱스가 있으면 T.A에 'cow'값이 있는 튜플을 알려달라고 할 때,전체 테이블을 스캐닝하지 않고 3과 7 튜플을 반환한다. 두 개 칼럼에 대해서 인덱스를 지정할 수도 있다.condition에 자주 사용되는 어트리뷰트에 대해 인덱스를 설계하는 것이 중요하다 인덱스의 자료 구조(1) 균형 트리구현 형태: B tree, B+tree attribute = valueattribute value_1..
-
Data Modification Statements (edX StandfordOnline: Databases: relational databases and sql)컴퓨터/DB, SQL 2025. 6. 15. 15:59
출처https://www.edx.org/learn/relational-databases/stanford-university-databases-relational-databases-and-sql StanfordOnline: Databases: Relational Databases and SQL | edXThis course is one of five self-paced courses on the topic of Databases, originating as one of Stanford's three inaugural massive open online courses released in the fall of 2011. The original "Databases" courses are now all avai..
-
Null values (edX StanfordOnline Databases: Relational Databases and SQL)컴퓨터/DB, SQL 2025. 6. 15. 15:38
출처https://www.edx.org/learn/relational-databases/stanford-university-databases-relational-databases-and-sql StanfordOnline: Databases: Relational Databases and SQL | edXThis course is one of five self-paced courses on the topic of Databases, originating as one of Stanford's three inaugural massive open online courses released in the fall of 2011. The original "Databases" courses are now all avai..