Skip to content

Commit ab15099

Browse files
authored
Create README.md
1 parent 4d44dfb commit ab15099

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Parallelizing Node.js operations with child process
2+
3+
Example of how Migrate 1M items from MongoDB to Postgres in just a few minutes using Node.js child process
4+
5+
![Aumentando em 999x a velocidade de processamento de dados com Node](https://github.com/ErickWendel/parallelizing-nodejs-ops/assets/8060102/6974de93-7848-477a-9198-9d99dedc18f3)
6+
7+
8+
## Running
9+
10+
You'll need to install Docker and Docker compose to be able to spin up the DBs instances, after that run:
11+
- docker-compose up -d
12+
- npm ci
13+
- npm run seed
14+
- npm start
15+
16+
## Errors?
17+
18+
In case you got an error of too many processes open, try decreasing the const [CLUSTER_SIZE](https://github.com/ErickWendel/parallelizing-nodejs-ops/blob/main/src/index.js#L8C1-L8C24) variable

0 commit comments

Comments
 (0)