tbayart / sql-server-data-producer

Automatically exported from code.google.com/p/sql-server-data-producer
0 stars 0 forks source link

Possibility to skip generation of an item based on the GenerationNumber N #45

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Sometimes I want to generate data that is not perfect.
For example. I might want to generate orders without delivery address. 
In this case I want 10 orders, but one of them should be missing this row in 
the database.

Another example:
I want to generate 1000 customers and then 500 000 transactions for each of 
them. In this case i only want to generate the customers when the 
GenerationNumber equals 1 (N = 1), for the rest of the executions the Customer 
insertion would not be run.

Another example:
For every other order(or every third etc) I want to add an entry in the 
PromotionalCode table, to indicate that these customers have used some 
promotional code system on our website.

Suggestion:
Implement an option on ExecutionItem that enables me to do execution based on 
logic on the GenerationNumber N. Options should include:
Less than X
Higher than X
Every Other X
etc

Original issue reported on code.google.com by a03pe...@gmail.com on 20 Jun 2012 at 7:44

GoogleCodeExporter commented 9 years ago

Original comment by a03pe...@gmail.com on 23 Jun 2012 at 10:36

GoogleCodeExporter commented 9 years ago
Done. GUI Implemented aswell.
Not so pretty but functional

Original comment by a03pe...@gmail.com on 24 Jun 2012 at 7:15