shenyixin99
狐狸大王
狐狸大王
  • UID30127
  • 注册日期2009-08-19
  • 最后登录2011-11-20
  • 发帖数318
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
阅读:6791回复:21

大家的的places.sqlite有多大

楼主#
更多 发布于:2009-09-17 10:04
我的FF,用了半年,经过手工清理,现在的places.sqlite大小大概为1M。。。
mygames10
狐狸大王
狐狸大王
  • UID30577
  • 注册日期2009-10-04
  • 最后登录2022-02-14
  • 发帖数337
  • 经验55枚
  • 威望0点
  • 贡献值48点
  • 好评度3点
  • 社区居民
  • 忠实会员
1楼#
发布于:2009-09-17 10:04
在管理书签里面把上月鸡以前的历史都删除了,还有2.5M大 不删除有9M大
Nice to meet you.
Gardon
小狐狸
小狐狸
  • UID15177
  • 注册日期2006-10-24
  • 最后登录2013-07-13
  • 发帖数4
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
2楼#
发布于:2009-09-17 10:04
两年,11.9M
openicq
狐狸大王
狐狸大王
  • UID5412
  • 注册日期2005-04-23
  • 最后登录2015-12-15
  • 发帖数353
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 社区居民
3楼#
发布于:2009-09-17 10:04
shenyixin99
狐狸大王
狐狸大王
  • UID30127
  • 注册日期2009-08-19
  • 最后登录2011-11-20
  • 发帖数318
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
4楼#
发布于:2009-09-17 10:04
用了placescleaner之后还有有20M ,可见placescleaner删除访问次数少于N次的记录,效果并不明显,因为历史记录很多都是重复的。。。。若是按照日期来删除,保留一个月以来的数据,至少可以删除到1M左右。placescleaner的开发者不知道来不来这个论坛,要是他能添加一个按照时间来删除的功能,那俺就不用再费事了,最近忙着找工作,没空写扩展哟,呵呵。。。
web123lai
千年狐狸
千年狐狸
  • UID8036
  • 注册日期2005-08-17
  • 最后登录2019-05-01
  • 发帖数4225
  • 经验13枚
  • 威望1点
  • 贡献值20点
  • 好评度10点
  • 社区居民
5楼#
发布于:2009-09-17 10:04
看了看有三个月之前的历史纪录,应该和shenyixin99说的一样,有4万条历史纪录,1000个书签,别是以前瞎折腾弄坏了,准备备份书签后让firefox重建
=======================================
压缩了之后有24M
=======================================
用了placescleaner之后有20M
=======================================
删除后重建有684k,连小图标都没了,tag之类的完整保留
=======================================
还是用最少保存30天的设置,如果不再折腾并且还记得有这么码事的话,半年后挖坟
kmc
kmc
管理员
管理员
  • UID165
  • 注册日期2004-11-25
  • 最后登录2022-09-22
  • 发帖数9186
  • 经验397枚
  • 威望1点
  • 贡献值124点
  • 好评度41点
  • 忠实会员
  • 终身成就
  • 社区居民
6楼#
发布于:2009-09-17 10:04
30天能上26M,你书签比历史都多吧
Waterfox Current和Firefox Nightly都用,逐渐走出XUL扩展依赖
web123lai
千年狐狸
千年狐狸
  • UID8036
  • 注册日期2005-08-17
  • 最后登录2019-05-01
  • 发帖数4225
  • 经验13枚
  • 威望1点
  • 贡献值20点
  • 好评度10点
  • 社区居民
7楼#
发布于:2009-09-17 10:04
我的是26M,保存30天的,刚开始的时候折腾过一次,后来就不管了,应该是稳定在这个大小了,要是定期整理怪麻烦的
ciel
小狐狸
小狐狸
  • UID28982
  • 注册日期2009-05-26
  • 最后登录2022-04-22
  • 发帖数86
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
8楼#
发布于:2009-09-17 10:04
252KB
Cec27
小狐狸
小狐狸
  • UID30417
  • 注册日期2009-09-18
  • 最后登录2009-09-18
  • 发帖数1
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
9楼#
发布于:2009-09-17 10:04
我的只有344K,安装好第一次运行我就设置历史记录为1天.
shenyixin99
狐狸大王
狐狸大王
  • UID30127
  • 注册日期2009-08-19
  • 最后登录2011-11-20
  • 发帖数318
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
10楼#
发布于:2009-09-17 10:04
Vacuuming and zero-fill

Sqlite has a VACUUM command to compress unused space from the database. Sqlite works like a memory manager or a file system. When data is deleted, the associated bytes are marked as free but are not removed from the file. This means that the file will not shrink, and some data may still be visible in the file. The way to work around this is to run the VACUUM command to remove this space.

Vacuuming is very slow. The vacuum command is essentially the same as the command line sqlite3 olddb .dump | sqlite3 newdb; mv newdb olddb. On some networked drives, vacuuming a 10MB database has been timed at over one minute. Therefore, you should avoid vacuuming whenever possible.

Some items in databases are privacy sensitive, such as deleted history items. Users have the expectation that deleting items in their history will remove the traces of that from the database. As a result, Mozilla enables the SQLITE_SECURE_DELETE preprocessor flag in db/sqlite3/src/Makefile.in . This flag causes deleted items to be filled with 0s on disk. This eliminates the need to vacuum except to reclaim disk space, and makes many operations much faster.

Zero-filling can have significant performance overhead in some situations. For example, the history service used to delete many database items at shutdown when expiring old history items. This operation is not necessarily slow, but writing 0s to disk in an "ACI" database is still slow. This made shutdown very slow because the AsyncIO thread would block shutdown ( bug 328598). Shutdown times of more than 30 seconds were seen. As a result, this bug introduced incremental history expiration eliminating the need to write many 0s to disk on shutdown.

Unfortunately, this operation cannot be controlled on a per-transaction or per-connection basis. Some operations will benefit, while others will be hurt.


由此看来,加快启动速度的同时,可能会导致关闭速度的减慢。。。。若想要提高启动速度的同时,也提高关闭速度,最好的办法就是采用FF的默认配置,然后每隔一段时间(最好一个月左右)自己清理一下数据库。使得启动的时候不会读取太多的数据,关闭的时候不会写入太多的数据。。。。
shenyixin99
狐狸大王
狐狸大王
  • UID30127
  • 注册日期2009-08-19
  • 最后登录2011-11-20
  • 发帖数318
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
11楼#
发布于:2009-09-17 10:04
上面的链接好像也是执行VACUUM这条指令,只不过不用重启而已。。。看来有空要对VACUUM这条指令进行研究,不知道它的详细原理是怎样的。。。。
openicq
狐狸大王
狐狸大王
  • UID5412
  • 注册日期2005-04-23
  • 最后登录2015-12-15
  • 发帖数353
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 社区居民
12楼#
发布于:2009-09-17 10:04
12.6M
不用刻意去减小places.sqlite的大小也可以很快的
http://mozillalinks.org/wp/2009/08/vacu ... o-restart/
shenyixin99
狐狸大王
狐狸大王
  • UID30127
  • 注册日期2009-08-19
  • 最后登录2011-11-20
  • 发帖数318
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
13楼#
发布于:2009-09-17 10:04
默认值是180天,呵呵,也就是半年,那一起向100M的目标前进吧,
kmc
kmc
管理员
管理员
  • UID165
  • 注册日期2004-11-25
  • 最后登录2022-09-22
  • 发帖数9186
  • 经验397枚
  • 威望1点
  • 贡献值124点
  • 好评度41点
  • 忠实会员
  • 终身成就
  • 社区居民
14楼#
发布于:2009-09-17 10:04
shenyixin99:刚刚又删除了5000条历史记录,places的大小减少了500K。
可见,1万条历史记录,将会使places的大小增加1M。

某些人的历史记录若达到200万条,places的大小达到200M并不为奇。
一天访问几千条,一年就足以达到200万条,呵呵。。。。大家一起向这个宏伟目标前进
回到原帖


默认值不是90天吗?
Waterfox Current和Firefox Nightly都用,逐渐走出XUL扩展依赖
上一页
游客

返回顶部