You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using JSON for bulk insert it fails on my system because memory usage is too high.
cat 500mb_json_array.json | curl http://localhost:3000/test_raw -X POST \
-H "Authorization: Bearer $jwt" \
-H "Content-Type: application/json" \
-H "Transfer-Encoding: chunked" \
-H "Prefer: resolution=merge-duplicates" \
--data-binary @-
# Fails because PostgREST runs out of system memory (12GB)
So would like to try CSV data for bulk insert. Perhaps because this does not require reading the full file like in JSON for the silly matching [ .. ] it might work without memory issues.
A minimal SQL definition.
create table if not exists public.test_raw (
id text unique not null,
data jsonb,
ts timestamptz not null default now()
);
Uh oh!
There was an error while loading. Please reload this page.
Environment
Description of issue
How to insert JSON data using CSV.
When using JSON for bulk insert it fails on my system because memory usage is too high.
So would like to try CSV data for bulk insert. Perhaps because this does not require reading the full file like in JSON for the silly matching
[ .. ]
it might work without memory issues.Whats the correct way to post CSV data that has a JSON column?
The text was updated successfully, but these errors were encountered: