# SQLite-zstd - 랜덤억세스 가능한 Row 레벨 압축 확장

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

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=7137](https://news.hada.io/topic?id=7137)
- GeekNews Markdown: [https://news.hada.io/topic/7137.md](https://news.hada.io/topic/7137.md)
- Type: news
- Author: [xguru](https://news.hada.io/@xguru)
- Published: 2022-08-08T09:36:01+09:00
- Updated: 2022-08-08T09:36:01+09:00
- Original source: [github.com/phiresky](https://github.com/phiresky/sqlite-zstd)
- Points: 6
- Comments: 0

## Topic Body

- 딕셔너리 기반으로 Row 단위 압축을 해서 전체 압축보다는 조금 크지만 랜덤 억세스 가능   
- IMDB의 7백만개 타이틀을 JSON 으로 저장한 2.2GB DB  
→ 파일 전체 압축시 200MB가 되지만 랜덤억세스 불가   
→ sqlite-zstd 압축시 550MB에 랜덤억세스 가능   
- 데이터에 따라서 80% 정도 공간 절약. 성능은 거의 비슷하고, 심지어 더 빠르기도 함(디스크에서 읽는 양이 줄어들어서)

## Comments



_No public comments on this page._
