가변길이파일(sparse file) 의 최대영역 줄이는법?
글쓴이: vita1991 / 작성시간: 목, 2018/09/20 - 7:27오후
안녕하세요... 방법을찾지못해 도움을 요청드립니다.
sqlite DBFile 하나가 이렇게 클리가 없는데 7G를 잡아먹고 있습니다.
이로인해 DBCP 라이브러리에서 쿼리수행이되지않고 I/O에러를 발생시키는 현상이 발생하여
크기를 줄여보려 합니다만.. dd등의 유틸로 시도해보았으나 잘 되지 않아요ㅠ
sqlite3 CLI모드에서는 잘 실행되는걸보면 깨진건 아닌것 같습니다..
OS는 솔라리스 sparcv9 이며 파일시스템은 ext4 입니다.
아래는 용량정보입니다.
ls -s 의 경우
14086272
ls -l 의 경우
7212113920
Forums:
혹시 이건 도움이 될까요?
혹시 이건 도움이 될까요?
http://www.sqlitetutorial.net/sqlite-vacuum/
참고해보세요.
관련된 내용을 찾아봤습니다. ㅇ_ㅇ;;
//
Limits In SQLite
https://www.sqlite.org/limits.html
Will SQLite performance degrade if the database size is greater than 2 gigabytes?
https://stackoverflow.com/questions/14451624/will-sqlite-performance-degrade-if-the-database-size-is-greater-than-2-gigabytes
Database File Format
https://www.sqlite.org/fileformat.html
DB file size limit #114
https://github.com/sqlitebrowser/sqlitebrowser/issues/114
What is a realistic, real-world, maximum size for a SQLite database?
https://softwareengineering.stackexchange.com/questions/332069/what-is-a-realistic-real-world-maximum-size-for-a-sqlite-database
What is the maximum size of the SQlite database for the archive?
https://support.networkoptix.com/hc/en-us/articles/218168477-What-is-the-maximum-size-of-the-SQlite-database-for-the-archive-
5. Managing SQLite Archives From Application Code
https://www.sqlite.org/sqlar.html
sqlar_compress
14.4. SQLite Archive Update Command
http://code.i-harness.com/ko-kr/docs/sqlite/cli
Sqlite Commant Tutorial
http://sqliteborhan.blogspot.com
//sqlite 파일 용량 줄이기
DB 파일크기 줄이기
http://matthaios.tistory.com/3
sqlite3 파일 사이즈 줄이기
http://jadumate.tistory.com/entry/sqlite3-%ED%8C%8C%EC%9D%BC-%EC%82%AC%EC%9D%B4%EC%A6%88-%EC%A4%84%EC%9D%B4%EA%B8%B0
SQLite 의 모든 것 (1부) - 소개 및 FAQ Database/SQLite
http://crystalcube.co.kr/89
SQLite에 대한 적절한 사용법
https://code-examples.net/ko/docs/sqlite/whentouse
레코드가 많은 경우 SQLite 3 select 성능 관련..
http://www.masterqna.com/android/520/레코드가-많은-경우-sqlite-3-select-성능-관련
SQLite의 FTS를 이용하여 데용량 텍스트 문서 집합에서 효과적으로 검색하기
http://hibrainapps.tistory.com/27
SQLite
2014.10.10 23:28
http://m.blog.daum.net/psyconeer/9
어떻게 코어 데이터 sqlite 파일 크기를 최소화하거나 압축 하시겠습니까?
https://stackoverrun.com/ko/q/2018229
용량큰 테이블 삭제 해도 db용량은 줄어들지 않나요?
http://www.sqler.com/index.php?mid=bSQLQA&category=128529&listStyle=webzine&page=2&document_srl=564068
https://okky.kr
Ms sql ldf log 파일용량 줄이기
https://auctionpro.co.kr/?p=3334
SQLite에 도전하는 오픈소스 모바일 DB ‘렘’
http://www.bloter.net/archives/208063
PostgreSQL: 베큠(VACUUM)을 실행해야되는 이유 그리고 성능 향상
https://blog.gaerae.com/2015/09/postgresql-vacuum-fsm.html
SQLite 파일 용량 줄이기
http://blog.naver.com/PostView.nhn?blogId=haengro&logNo=40083281243
TABLE을 생성하기전에 아래 구문을 추가한다.
PRAGMA auto_vacuum = 1;
그렇지 않으면, DELETE FROM TABLE을 이용해서 모든 내용을 비워도, DB파일의 크기가 줄어들지 않을 것이다.
SQLite - 파일 용량 관련(관리,줄이기)(auto_vacuum)
http://202psj.tistory.com/226
SQLite에서 파일 크기 줄이기
http://blog.purewell.biz/2012/12/sqlite.html
VACUUM;
----------------------------------------------------------------------------
젊음'은 모든것을 가능하게 만든다.
매일 1억명이 사용하는 프로그램을 함께 만들어보고 싶습니다.
정규 근로 시간을 지키는. 야근 없는 회사와 거래합니다.
각 분야별. 좋은 책'이나 사이트' 블로그' 링크 소개 받습니다. shintx@naver.com
댓글 달기