Skip to content

saveOptions chunk is very confusion #5050

@linchen2chris

Description

@linchen2chris

Issue type:

[x] question
[ ] bug report
[ ] feature request
[ ] documentation issue

Database system/driver:

[ ] cordova
[ ] mongodb
[ ] mssql
[ ] mysql / mariadb
[ ] oracle
[x] postgres
[ ] cockroachdb
[ ] sqlite
[ ] sqljs
[ ] react-native
[ ] expo

TypeORM version:

[x] latest
[ ] @next
[ ] 0.x.x (or put your version here)

Steps to reproduce or a small repository showing the problem:
I have 100,000 entity to save, I'd like to split them to 10 chunks, each chunk has 10,000 items. so what's the saveOption chunk should I pass? 10? or 10,000?
I check api document, it says 10,000, https://typeorm.io/#/repository-api/additional-options
image

I also check code, but the comments says it should be 10. https://github.com/typeorm/typeorm/blob/80d6f6628af01ae58152aea39fe30b819351f6be/src/repository/SaveOptions.ts
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions