如何无限期删除PouchDB数据库,以释放空间? [英] How can I delete PouchDB Database indefinitly, to free space?

查看:329
本文介绍了如何无限期删除PouchDB数据库,以释放空间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在PouchDB中删除数据库,使磁盘空间再次自由?
删除只设置一个参数_deleted,并保持记录的数据。

但是如何删除记录,实际上删除它们并节省一些空间?

因为我想立即重置数据库,所以不会太大。

How can I drop a database in PouchDB to get the space on the disk free again? Remove only sets a paramter _deleted and keeps the Data of the record anyway.
But how can I delete records in a way that actually gets rid of them and saves up some space?
Because I'd like to reset the database every now and then so it doesn't get too big.

推荐答案

这听起来像是在寻找压缩。它会做你所描述的。 :)

It sounds like you are looking for compaction. It will do exactly what you describe. :)

这篇关于如何无限期删除PouchDB数据库,以释放空间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆