Snowfakery-Recipe-Templates icon indicating copy to clipboard operation
Snowfakery-Recipe-Templates copied to clipboard

Best Practices: Where to define number of records

Open allisonletts opened this issue 3 years ago • 2 comments

We like the idea of defining the relative numbers of records (aka the "skew") within the recipe itself, and the overall number of records in the command line.

This may conflict with current recipes as well as current guidance. Can we have a conversation about it here?

allisonletts avatar Nov 03 '21 19:11 allisonletts

So this makes me think that

cci task run generate_and_load_from_yaml -o generator_yaml snowfakery_samples/npsp/Account_Soft_Credit_npsp.recipe.yml -o num_records 10 -o num_records_tablename Contact --org dev

is the right model for the argument conventions we want to replicate. Correct, @prescod?

samanthashain avatar Nov 04 '21 13:11 samanthashain

that looks right to me, fwiw.

allisonletts avatar Nov 04 '21 13:11 allisonletts