Android SQLite Journal行为已更改? [英] Android SQLite Journal behaviour changed?

查看:77
本文介绍了Android SQLite Journal行为已更改?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的想法是,SQLite日志仅在有未决操作时才会保留在文件系统中.

I had the idea that the SQLite journal would only remain in the filesystem while there were pending operations.

但是,在我看来,至少在Android 4.1+中,正常的行为是,即使将事务设置为成功/结束,甚至关闭数据库,SQLite日记都保留在文件系统中.

However, it seems to me that at least in Android 4.1+, the normal behaviour is for the SQLite journal to remain in the filesystem, even after setting a transaction as successful / ended, and even closing the Database.

有人对为什么以及何时改变这种行为有想法吗?

Does someone have an idea on why and when this behaviour changed?

推荐答案

显然,默认的 journal_mode设置在该Android版本上有所不同.

Apparently, the default journal_mode setting is different on that Android version.

这篇关于Android SQLite Journal行为已更改?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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