如何在删除大图后缩小 virtuoso.db 文件大小?

How to shrink virtuoso.db file size after deleting a large graph?

我在 Virtuoso SPARQL 7.20.3217 端点的 conductor 中删除了一个大图,但 virtuoso.db 的大小仍然像以前一样是 3.6 GB,即使在重新启动服务器后也是如此。是否有清理数据库并删除缓存和索引等剩余部分的命令?

如您所见,从数据库中删除数据不会立即释放该数据之前占用的磁盘 space。 Virtuoso 有一个 auto-compaction feature which will eventually free space. New data will be loaded into the space previously occupied by deleted data, but of course this reuse will be imperfect. You may be able to free some space by running a CHECKPOINT; or the DB..VACUUM (); procedure. You can also do a backup-dump-and-reload 可以立即回收磁盘——尽管在此过程中您必须暂时消耗更多的磁盘 space。也可以删除和重建索引,但这本身通常不会释放太多磁盘。