-
Notifications
You must be signed in to change notification settings - Fork 46
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
Import railjson command fails with big infra #2328
Labels
area:editoast
Work on Editoast Service
difficulty:good first issue
Good for newcomers
kind:bug
Something isn't working
Comments
Khoyo
added a commit
that referenced
this issue
Nov 14, 2022
Diesel only accepts 65535 parameters per query, so we need to chunk our insertions when importing big infras. Fixes #2328.
Khoyo
added a commit
that referenced
this issue
Nov 21, 2022
Diesel only accepts 65535 parameters per query, so we need to chunk our insertions when importing big infras. Fixes #2328.
flomonster
pushed a commit
that referenced
this issue
Nov 23, 2022
Diesel only accepts 65535 parameters per query, so we need to chunk our insertions when importing big infras. Fixes #2328.
flomonster
pushed a commit
that referenced
this issue
Nov 23, 2022
Diesel only accepts 65535 parameters per query, so we need to chunk our insertions when importing big infras. Fixes #2328.
flomonster
pushed a commit
that referenced
this issue
Nov 23, 2022
Diesel only accepts 65535 parameters per query, so we need to chunk our insertions when importing big infras. Fixes #2328.
flomonster
pushed a commit
that referenced
this issue
Nov 25, 2022
Diesel only accepts 65535 parameters per query, so we need to chunk our insertions when importing big infras. Fixes #2328.
alexandredamiron
pushed a commit
that referenced
this issue
Jan 17, 2023
Diesel only accepts 65535 parameters per query, so we need to chunk our insertions when importing big infras. Fixes #2328.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area:editoast
Work on Editoast Service
difficulty:good first issue
Good for newcomers
kind:bug
Something isn't working
Describe the bug$2^{16} - 1$ objects (of the same type), the command fails.
When trying to import an infra with more than
To Reproduce
Steps to reproduce the behavior:
editoast import-railjson my_infra /path/to/infra.json
Make sure that the infra you're importing is big enough.
The command fails with the following error message:
Expected behavior
The command should work.
How to fix:
The functions
persist_batch
must handle vectors with a lot of elements by doing multiple pg queries.The text was updated successfully, but these errors were encountered: