# MySQL 쓰면서 하지 말아야 할 것 17가지

> Clean Markdown view of GeekNews topic #2924. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=2924](https://news.hada.io/topic?id=2924)
- GeekNews Markdown: [https://news.hada.io/topic/2924.md](https://news.hada.io/topic/2924.md)
- Type: news
- Author: [ohjongin](https://news.hada.io/@ohjongin)
- Published: 2020-09-28T17:14:39+09:00
- Updated: 2020-09-28T17:14:39+09:00
- Original source: [blog.lael.be](https://blog.lael.be/post/370)
- Points: 16
- Comments: 0

## Topic Body

- 작게 생각하기

- EXPLAIN 안 써보기

- 잘못된 데이터 타입 선택

- PHP에서 pconnect 쓰는 짓

- 너무 과도한 DB 추상화 계층을 두는 것

- 스토리지 엔진 이해 못 하는 것

- 인덱스 레이아웃 이해 못 하는 것

- 쿼리 캐시 이해 못 하는 것

- Stored Procedure를 쓰는 것

- 인덱스 컬럼에 함수 쓰는 것

- 인덱스 빼먹거나 쓸모없는 인덱스 만들어 놓는 것

- join 안 쓰는 짓

- Deep Scan 고려하지 않는 것

- InnoDB 테이블에서 WHERE 조건절 없이 SELECT COUNT(*) 하는 짓

- 프로파일링이나 벤치마킹 안 하는 것

- AUTO_INCREMENT 안 쓰는 것

- ON DUPLICATE KEY UPDATE를 안 쓰는 것

※ 각 항목별 설명은 링크 클릭하시면 원문에서 보실 수 있습니다.

## Comments



_No public comments on this page._
