AnswerDotAI / AnswerDotAI/sqlite-minutils

Address last use of get_last_rowid

未关闭
#47 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
17
派生
9
PR 合并指标
30 天内没有已合并 PR

描述

The `get_last_rowid` function is being called [here](https://github.com/AnswerDotAI/sqlite-minutils/blob/main/sqlite_minutils/db.py#L276-L279) in `insert_chunk`: https://github.com/AnswerDotAI/sqlite-minutils/blob/main/sqlite_minutils/db.py#L2992

That means that inserts are still vulnerable to corruption due to concurrency, transactions, and vacuums.

贡献指南

这个仓库没有索引到贡献指南

调研方向

阅读 sqlite_minutils/db.py 第276-279行附近和第2992行,跟踪 get_last_rowid 和 insert_chunk。确定如何处理最后一次使用,同时避免插入操作在并发、事务或 vacuum 期间变得脆弱;完成标准是 insert_chunk 在这些情况下不再依赖 get_last_rowid。

由索引模型根据 Issue 内容生成。

评估

技术栈
python, sqlite
领域
databases
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。