Firefox3ã®SQLiteãã¡ã¤ã«ãä¸æ¬ãã¦reindex/vacuumããããã
以ä¸ãã¡ããã¨ãã¹ãï¼ã¬ãã¥ã¼ãã¦ããªãã®ã§èªå·±è²¬ä»»ã§ï¼ã
ãã§ã«èª°ãã使ã£ã¦ããã§ãããDropboxæ¹é¢ã§ãã¼ãºããããããªã®ã§ãæ¥ãå¿ãã§ãï½
- â»2009-03-10追è¨ï¼ãã§ã«ããã¾ãããFORæã§åããã¦ãã¦ã¹ãã¼ãã§ãï¼ï¼「Firefox Placesの最適化 その2 - 〜非日常な日々を大切に〜 - Yahoo!ブログ」
- â»2009-03-10追è¨ï¼ã¨ãããã¨ã§ãFirefoxãããã¡ã¤ã«å ã®SQLiteãã¡ã¤ã«ãFORæã§ä¸æ¬ãã¦vacuum/reindexãããããã追å ãã¾ããããããã§ã®FORæã®ä½¿ãæ¹ããããããããããã§ããï¼ãããã¾ããï¼ï¼
Firefox3ã®SQLiteãã¡ã¤ã«ãä¸æ¬ãã¦reindex/vacuumããããããã¡ã¤ã«ã§ãã
- Firefoxã使ç¨ä¸ãªãããããæãã
- SQLiteãã¡ã¤ã«ãäºåã«ããã¯ã¢ããã»ãã©ã«ãã¸ã³ãã¼ï¼æ¥æããã¡ã¤ã«æ¡å¼µåã«æ·»ä»ï¼
- sqlite3.exe ã§reindex
- sqlite3.exe ã§vacuum
ã¨ããæµãã§ãã
è¨å®ã¯é©å½ã«æ¸ãæãã¦ä¸ããã
- SQLite3.exe ã³ãã³ãã®ãã¹
- Firefoxã®ãããã¡ã¤ã«ã®ãã¹
- SQLiteãã¡ã¤ã«ã®ããã¯ã¢ããã»ãã©ã«ãã®ãã¹
â»SQLite3.exeãã¡ã¤ã«ã¯ä»¥ä¸ãããã¦ã³ãã¼ã
"SQLite Download Page"ããPrecompiled Binaries For Windowsã®A command-line program for accessing and modifing SQLite databases. ã®ZIPããã¦ã³ãã¼ã
FORæã§ãããã¡ã¤ã«å ã®SQLiteãã¡ã¤ã«ããã¹ã¦vacuum/reindexããããã
path D:\Program Files\sqlite-3_6_2;%path% set FirefoxProfilesPath=D:\hogehoge\Firefox\Profiles set BackupPath=%FirefoxProfilesPath%\backup set DT=%DATE:~0,4%-%DATE:~5,2%-%DATE:~8,2% set TT=%time: =0% set TT=%TT:~0,2%%TT:~3,2% cd %FirefoxProfilesPath% if exist parent.lock goto EXIT for %%i in (*.sqlite) do copy %%i %BackupPath%\%%i.%DT%-%TT% for %%i in (*.sqlite) do sqlite3.exe %%i reindex for %%i in (*.sqlite) do sqlite3.exe %%i vacuum :EXIT
places.sqlite, urlclassifier3.sqliteãªã©åã ã«vacuum/reindexããããã
path D:\Program Files\sqlite-3_6_2;%path% set FirefoxProfilesPath=D:\hogehoge\Firefox\Profiles set BackupPath=%FirefoxProfilesPath%\backup set DT=%DATE:~0,4%-%DATE:~5,2%-%DATE:~8,2% set TT=%time: =0% set TT=%TT:~0,2%%TT:~3,2% set COOKIES=cookies.sqlite set DOWNLOADS=downloads.sqlite set FORMHISTORY=formhistory.sqlite set PERMISSIONS=permissions.sqlite set PLACES=places.sqlite set SEARCH=search.sqlite set URLCLASSIFIER3=urlclassifier3.sqlite cd %FirefoxProfilesPath% if exist parent.lock goto EXIT copy %COOKIES% %BackupPath%\%COOKIES%.%DT%-%TT% sqlite3.exe %COOKIES% reindex sqlite3.exe %COOKIES% vacuum copy %DOWNLOADS% %BackupPath%\%DOWNLOADS%.%DT%-%TT% sqlite3.exe %DOWNLOADS% reindex sqlite3.exe %DOWNLOADS% vacuum copy %FORMHISTORY% %BackupPath%\%FORMHISTORY%.%DT%-%TT% sqlite3.exe %FORMHISTORY% reindex sqlite3.exe %FORMHISTORY% vacuum copy %PERMISSIONS% %BackupPath%\%PERMISSIONS%.%DT%-%TT% sqlite3.exe %PERMISSIONS% reindex sqlite3.exe %PERMISSIONS% vacuum copy %PLACES% %BackupPath%\%PLACES%.%DT%-%TT% sqlite3.exe %PLACES% reindex sqlite3.exe %PLACES% vacuum copy %SEARCH% %BackupPath%\%SEARCH%.%DT%-%TT% sqlite3.exe %SEARCH% reindex sqlite3.exe %SEARCH% vacuum copy %URLCLASSIFIER3% %BackupPath%\%URLCLASSIFIER3%.%DT%-%TT% sqlite3.exe %URLCLASSIFIER3% reindex sqlite3.exe %URLCLASSIFIER3% vacuum :EXIT
ããã¯ã¢ãããã¡ã¤ã«ãrotateããã人ã¯é©å½ã«å¤ãã¦ä¸ããã
以ä¸ã§ãã
åè:
Firefox Placesã®æé©å ãã®2 - ãéæ¥å¸¸ãªæ¥ã
ã大åã«ã - Yahoo!ããã°
http://blogs.yahoo.co.jp/strange_afterschool/58366395.html