惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

A
About on SuperTechFans
T
Threatpost
L
LangChain Blog
G
GRAHAM CLULEY
Simon Willison's Weblog
Simon Willison's Weblog
W
WeLiveSecurity
T
The Blog of Author Tim Ferriss
Stack Overflow Blog
Stack Overflow Blog
C
Check Point Blog
Microsoft Security Blog
Microsoft Security Blog
C
Cybersecurity and Infrastructure Security Agency CISA
H
Hacker News: Front Page
P
Privacy International News Feed
Microsoft Azure Blog
Microsoft Azure Blog
Apple Machine Learning Research
Apple Machine Learning Research
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Attack and Defense Labs
Attack and Defense Labs
The Hacker News
The Hacker News
www.infosecurity-magazine.com
www.infosecurity-magazine.com
The Register - Security
The Register - Security
Cisco Talos Blog
Cisco Talos Blog
Google Online Security Blog
Google Online Security Blog
MyScale Blog
MyScale Blog
有赞技术团队
有赞技术团队
H
Help Net Security
U
Unit 42
S
Security Affairs
Engineering at Meta
Engineering at Meta
Forbes - Security
Forbes - Security
The Cloudflare Blog
S
Securelist
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Webroot Blog
Webroot Blog
量子位
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Help Net Security
Help Net Security
Latest news
Latest news
SecWiki News
SecWiki News
H
Heimdal Security Blog
IT之家
IT之家
博客园 - Franky
Google DeepMind News
Google DeepMind News
小众软件
小众软件
A
Arctic Wolf
月光博客
月光博客
T
Tailwind CSS Blog
NISL@THU
NISL@THU
GbyAI
GbyAI
N
News and Events Feed by Topic

SQLite

SQLite 开启 WAL 后,我的同步服务吞吐量提升了 3 倍 分享适合高并发场景的 SQLite 设置 - V2EX 在什么情况下一定要放弃 SQLite 采用 MySQL 呢? - V2EX SQLite 背后的故事 - V2EX 应该怎么理解 rowid 在 sqlite 中的使用 - V2EX macOS 上有什么好用的 SQLite GUI ? - V2EX SQLite In-Memory 作为数据缓存代替 Java Object - V2EX 回复“什么场景下用 SQLite”的主题并分享一个年收入 60 万刀的技术栈 - V2EX 大家有用 Sqlite 的吗,都是什么场景下要用这个,能说一两点非要用它的理由最好啦 SQLite Viewer Web App - V2EX 本地数据库 除了 SQLite 还有什么好用的. - V2EX 请教一个方案,边缘设备的 sqlite 数据如何才能获取到 - V2EX 有人知道怎么在 termux 上编译 sqlcipher 吗? 求一个数据库设计问题! - V2EX SQLite 被曝漏洞,影响范围很大 - V2EX 两个读写 SQLite 数据库的浏览器扩展 - V2EX How SQLite is tested 如果需要寫入數據, 不僅數據文件要有寫入權限, 數據文件所在的目錄也要有寫入權限 - V2EX 用sqlite3作为论坛的数据库行不行? About Sqlite 之前的一篇笔记 - V2EX 如何把一个2G的sqlite数据库分割成小的? - V2EX Base 2.0 - V2EX
什么时候调用 sqlite.close()呢 - V2EX
EyebrowsWhite · 2022-03-17 · via SQLite

EyebrowsWhite

V2EX  ›  SQLite

 

EyebrowsWhite · eyebrowkang · 2022 年 3 月 17 日 · 1911 次点击

这是一个创建于 1550 天前的主题,其中的信息可能已经有所发展或是发生改变。

在 stack overflow 上搜了一下,回答比较少,而且看的不是很懂,特来问问诸位。

前提:只有一个数据库

主要考虑以下几种场景:

  1. 创建一个或多个新表
  2. 增、删、改 数据(使用事务)
  3. 查 数据

如果使用 Serialized Mode ,那么是不是无论什么时候都没必要去调用 close 方法,等着垃圾回收就是?

如果使用 Multi-thread/Single-thread Mode ,那么是不是需要在前两种场景下手动调用 close 呢?