go-bulk-insert

command module
v0.0.0-...-5894149 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2023 License: MIT Imports: 10 Imported by: 0

README

go-bulk-insert

Optimized insertion query using parameterized queries to insert records in batches into a PostgreSQL database

Process
  • Open file with multiple records
  • Read json data
  • Send this data to a redis queue
  • Inserting records in batches of 1000
  • Iterate through the records, creates a prepared statement, and execute it for each batch.
  • The process continues until all records have been inserted.
Technologies
  • Gin
  • Redis
  • Postgres

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
db

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL