Skip to content

A script that will sample data from your database and generate a tiny subset representing real data

Notifications You must be signed in to change notification settings

HackingHabits/DatabaseSampler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Database Sampler

Samples a subset of your production database and provides a small sized dataset that represents true data. All associations are maintained to provide the best representation of the dataset.

ruby sampler.rb

This will generate csv files in the data folder. You should be able to import the data into mysql using the load script provided

bash ./load_data.sh

Future Roadmap

  • Work on specs
  • Handle cases where the current two sampling strategies fail
  • Make it pluggable for various backend
  • Allow configuration to be read from CLI

About

A script that will sample data from your database and generate a tiny subset representing real data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published