No description
- JavaScript 78.2%
- Shell 14.2%
- Makefile 7.6%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| db | ||
| .gitignore | ||
| delete.js | ||
| docker-compose.yml | ||
| Makefile | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| script.sh | ||
| with-stream.js | ||
| without-stream.js | ||
Use case for Streams
This repo will setup a postgres db in local with user and normalized_user table, the scope is on setup
will create by default 500MB of records inside user table, our goal is to read from user table and do some
pretty complex(YESS) transformation and then feed that complexed data into normalized_user table.
Prerequisites
Of course this repo, docker and node installed(>=20)
How this works
I have done this in two ways, one typical way of selecting the whole data do the transformation and batch/bulk insert. two is using the streams way.
How to run
Clone this repo.
- make setup
- make without-stream.js
- make with-stream.js
Note
Just see the memory difference(Thats all i can say :()