Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/crazyoptimist/data-loader-go-poc

Load data into DB in a scalable manner
https://github.com/crazyoptimist/data-loader-go-poc

Last synced: 13 days ago
JSON representation

Load data into DB in a scalable manner

Awesome Lists containing this project

README

        

# Data Loader POC

This is a proof of concept utilizing PostgreSQL/MySQL connection pooling along with Go's concurrency worker pool pattern.

It downloads a CSV dataset file from the internet, and loads one million records into DB.

### Instructions

Run a PostgreSQL/MySQL database locally either using Docker or not.

Create `.env` file from `.env.example`.

Run

```bash
go run ./cmd/pgloader/main.go
```

```bash
go run ./cmd/mysqlloader/main.go
```

[_crazyoptimist_](https://crazyoptimist.net)