MCPcopy Index your code
hub / github.com/diego3g/large-json-node-stream-process

github.com/diego3g/large-json-node-stream-process @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
11 symbols 32 edges 3 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Large JSON file process with Streams

Downloading a large JSON file and saving its content to Database using:

  • No stream, download full JSON and insert one-by-one on database;
  • Stream download and insert one-by-one on database;
  • Stream download and insert in batches on database;

No Streams

Memory usage: 537.05MB

Executed in 9.23 secs fish external usr time 11.99 secs 82.00 micros 11.99 secs sys time 2.21 secs 473.00 micros 2.21 secs

Insert one-by-one

Memory usage: 19MB

Executed in 9.80 secs fish external usr time 12.96 secs 63.00 micros 12.96 secs sys time 1.86 secs 850.00 micros 1.85 secs

Insert in batches (1000)

Memory usage: 58MB

Executed in 3.67 secs fish external usr time 3.33 secs 16.40 millis 3.31 secs sys time 0.23 secs 3.46 millis 0.23 secs

Extension points exported contracts — how you extend this code

Job (Interface)
(no doc)
insert-in-batches.ts
Job (Interface)
(no doc)
no-streams.ts
Job (Interface)
(no doc)
insert-one-by-one.ts
StreamJob (Interface)
(no doc)
insert-in-batches.ts
StreamJob (Interface)
(no doc)
insert-one-by-one.ts

Core symbols most depended-on inside this repo

saveJobsToDatabase
called by 1
insert-in-batches.ts
consumeJobsStream
called by 1
insert-in-batches.ts
saveJobToDatabase
called by 1
no-streams.ts
consumeResponse
called by 1
no-streams.ts
saveJobsToDatabase
called by 1
insert-one-by-one.ts
consumeJobsStream
called by 1
insert-one-by-one.ts

Shape

Function 6
Interface 5

Languages

TypeScript100%

Modules by API surface

insert-one-by-one.ts4 symbols
insert-in-batches.ts4 symbols
no-streams.ts3 symbols

For agents

$ claude mcp add large-json-node-stream-process \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact