索引数据库时的sqlite3磁盘使用情况

时间:2016-04-02 02:53:27

标签: python ubuntu sqlite

当我致电sqlite3.connect('db').execute('CREATE INDEX ...')时,我的/分区已满,脚本与sqlite3.OperationalError: database or disk is full崩溃。

我有两个分区:/,4GB免费,/home,1TB免费。 python脚本位于/home

如何告诉sqlite3使用/home分区而不是/作为临时文件?

当我在python脚本运行时试图查看/下正在创建的文件时,我发现了这个:

python    24853 max    6u   REG    8,1 3821580012  788060 /var/tmp/etilqs_xARlZag1jj945jH (deleted)

不确定“删除”是什么意思,但它似乎是问题的根源。

Ubuntu 14.04LTS Python 3.5

更新:https://stackoverflow.com/a/23251896/336527解决了它。

0 个答案:

没有答案
相关问题