https://github.com/ericlondon/rails4-sidekiq-jruby-csv-data-creator
Rails4 Sidekiq JRuby CSV Data Creator
https://github.com/ericlondon/rails4-sidekiq-jruby-csv-data-creator
csv jruby rails sidekiq
Last synced: about 2 months ago
JSON representation
Rails4 Sidekiq JRuby CSV Data Creator
- Host: GitHub
- URL: https://github.com/ericlondon/rails4-sidekiq-jruby-csv-data-creator
- Owner: EricLondon
- Created: 2016-12-21T15:44:30.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-09-05T18:17:04.000Z (almost 2 years ago)
- Last Synced: 2025-01-12T01:23:43.422Z (over 1 year ago)
- Topics: csv, jruby, rails, sidekiq
- Language: Ruby
- Size: 30.3 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rails4 Sidekiq JRuby CSV Data Creator
This repo contains some code to generate CSV data using JRuby/Rails/Sidekiq and import the CSVs into Postgresql.
people -> orders -> orders_products <- products
Usage:
```
# rails setup
git clone
bundle install
rake db:create && rake db:migrate
# terminal 1, start sidekiq
sidekiq
# terminal 2
# - generate csv files
# - join csv files
# - import csv files
rails c
> CsvCreatorWorker.queue_all_jobs
> CsvCreatorWorker.join_all_csv_files
> CsvCreatorWorker.import_csv_files
```