Skip to content

Comments

fix: fix batch inserts for large project imports#134

Merged
yyg-max merged 2 commits intolinux-do:masterfrom
TethysPlex:fix-project-item-batch-inserts
Nov 4, 2025
Merged

fix: fix batch inserts for large project imports#134
yyg-max merged 2 commits intolinux-do:masterfrom
TethysPlex:fix-project-item-batch-inserts

Conversation

@TethysPlex
Copy link
Collaborator

@TethysPlex TethysPlex commented Nov 1, 2025

例行检查

  • 我已阅读并理解 贡献者公约
  • 我已阅读并同意 贡献者许可协议 (CLA),确认我的贡献将根据项目的 MIT 许可证进行许可,
  • 我知晓如果此 PR 并不做出实质性更改,或可被认为是为了PR被合并而提交PR的,则可能不会被合并,

关联信息

https://linux.do/t/topic/1106827

变更内容

将较大的 Item 创建分批进行

变更原因

优化性能并且允许单次追加更大的大小

@TethysPlex TethysPlex requested review from chenyme and yyg-max November 1, 2025 00:50
将 `projectItemInsertBatchSize` 常量从 `models.go` 移动到
`constants.go`,以更好地组织项目常量,并避免循环依赖。
Copy link
Collaborator

@yyg-max yyg-max left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yyg-max yyg-max merged commit 9392786 into linux-do:master Nov 4, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants