【问题标题】:What happens to an SQLite database upon recycle of IIS AppDomain回收 IIS AppDomain 后 SQLite 数据库会发生什么情况
【发布时间】:2025-12-10 18:00:01
【问题描述】:

由于 SQLite 在进程内运行,它必须与 IIS Web 服务一起回收。但是这些服务start a new instance before the previous one terminates 是否有可能导致数据库损坏或请求获取错误数据?

如果没有 - 怎么办?

【问题讨论】:

    标签: sql asp.net sqlite iis


    【解决方案1】:

    SQLite 包括文件锁定机制。所以您的数据库可以安全访问,但唯一的问题是您的数据库可能被某人锁定。你可以阅读Using SQLite In Multi-Threaded Applications了解更多详情。

    【讨论】: