# tbd (생각 잠시 미루기)

## 생각중

### count query

[페이징 성능 최적화 & Count 쿼리 최적화](/second-brain/second-brain/rdb/and-count.md#2-select-count-pk-vs-select-count)

* 왜 select count(\*) 가 더 성능이 좋지?
* InnoDB 는 클러스터형 인덱스를 스캔하여 select count(\*) 를 처리한다. 즉 실제 데이터 row 까지 읽어오지 않아도 처리가 가능하다는 것! (MySQL 에서는 PK 도 클러스터 인덱스 아닌가..?)&#x20;

### JPA Lock

[spring data jpa](/second-brain/second-brain/spring/jpa-orm/spring-data-jpa.md#lock)

* JPA 에서 트랜잭션과 Lock 을 다루는 방법을 좀 더 파보자!

### 시간복잡도

[자바 자료구조, 알고리즘 구현 어떤걸 써야 할까?](/second-brain/technical/technical-curiosity/time-complexity.md)

* 시간 복잡도를 좀 더 깊이 생각해보자 (최악, 최선, 보통의 경우)
* 자바 자료구조 구현체 중 어떤걸 써야할까?
* 실무와 이론의 갭을 보여주는 주제라고 생각함

### 채번 테이블 (Sequence) 사용

채번 테이블은 왜 사용하는 걸까?

-> 채번은 자식 테이블이 많아서 조인이 부담이 될 때 사용하면 유용하다. 덧붙여 순차적으로 계속 증가하여 업무적으로 PK를 지정하기 힘든 경우에 사용하면 좋다. (그렇다고 한다)

<https://dataonair.or.kr/db-tech-reference/d-lounge/expert-column/?mod=document&uid=51981>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://programmer-jjy.gitbook.io/second-brain/today-i-learned/tbd.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
