Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

知识库文档删除报错 #3460

Closed
503612012 opened this issue Dec 24, 2024 · 3 comments
Closed

知识库文档删除报错 #3460

503612012 opened this issue Dec 24, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@503612012
Copy link

503612012 commented Dec 24, 2024

知识库文档删除报错

这里应该是datasetId而非datasetIds吧?
删除dataset.datas的数据量小的时候,没有问题,数据量大的时候,就会报错,不明白是怎么回事。

001

@503612012 503612012 added the bug Something isn't working label Dec 24, 2024
@503612012
Copy link
Author

503612012 commented Dec 24, 2024

执行到这一行的时候,总是报WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.错误,而且是如果数据量小的话,不报错,数据量大的话(删除18810条数据),就会报错。

@503612012
Copy link
Author

503612012 commented Dec 25, 2024

这是调用api/core/dataset/collection/delete接口的时候返回的异常信息:
image

@c121914yu
Copy link
Collaborator

cfafc4b 这个 commit 有了点优化,取消删除知识库时候,关联删除 data 时候的事务(根据官方说明,超过 1000 条数据删除时候,最好不要用事务),所以删除 data 时候,不加入事务的选项了。会在 4.8.17 版本优化,可以升级 4.8.17-alpha 测试

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants