@@ -229,6 +229,12 @@ void add_options() {
229229 opt->setArgs (no_argument);
230230 opt->setBool (false );
231231
232+ /* No FK tables */
233+ opt = newOption (Option::BOOL, Option::NO_FK, " no-fk-tables" );
234+ opt->help = " do not work on foriegn tables" ;
235+ opt->setArgs (no_argument);
236+ opt->setBool (false );
237+
232238 /* No Partition tables */
233239 opt = newOption (Option::BOOL, Option::NO_PARTITION, " no-partition-tables" );
234240 opt->help = " do not work on partition tables" ;
@@ -241,12 +247,21 @@ void add_options() {
241247 opt->setArgs (no_argument);
242248 opt->setBool (false );
243249
250+ opt = newOption (Option::INT, Option::FK_PROB, " fk-prob" );
251+ opt->help = R"(
252+ Probability of each normal table having the FK. Currently, FKs are only linked
253+ to the primary key of the parent table. So, even with 100% probability, a table
254+ will have an FK only if its parent has a primary key.
255+ )" ;
256+ opt->setInt (50 );
257+
258+ opt = newOption (Option::INT, Option::PARTITION_PROB, " partition-prob" );
259+ opt->help = " Probability of parititon tables" ;
260+ opt->setInt (10 );
261+
244262 /* Ratio of temporary table to normal table */
245- opt = newOption (Option::INT, Option::TEMPORARY_TO_NORMAL_RATIO,
246- " ratio-normal-temp" );
247- opt->help = " ratio of normal to temporary tables. for e.g. if ratio to "
248- " normal table to temporary is 10 . --tables 40. them only 4 "
249- " temorary table will be created per session" ;
263+ opt = newOption (Option::INT, Option::TEMPORARY_PROB, " temporary-prob" );
264+ opt->help = " Probability of temporary tables" ;
250265 opt->setInt (10 );
251266
252267 /* Initial Records in table */
@@ -270,7 +285,7 @@ void add_options() {
270285 opt->setInt (1000 );
271286
272287 /* primary key probability */
273- opt = newOption (Option::INT, Option::PRIMARY_KEY, " primary-key-probability " );
288+ opt = newOption (Option::INT, Option::PRIMARY_KEY, " pk-prob " );
274289 opt->help = " Probability of adding primary key in a table" ;
275290 opt->setInt (50 );
276291
@@ -684,7 +699,7 @@ void add_options() {
684699 opt =
685700 newOption (Option::BOOL, Option::LOG_QUERY_DURATION, " log-query-duration" );
686701 opt->help = " Log query duration in milliseconds" ;
687- opt->setBool (true );
702+ opt->setBool (false );
688703 opt->setArgs (no_argument);
689704
690705 /* log failed queries */
@@ -714,28 +729,26 @@ void add_options() {
714729 opt->setArgs (no_argument);
715730
716731 /* transaction probability */
717- opt = newOption (Option::INT, Option::TRANSATION_PRB_K, " trx-prb -k" );
732+ opt = newOption (Option::INT, Option::TRANSATION_PRB_K, " trx-prob -k" );
718733 opt->help = " probability(out of 1000) of combining sql as single trx" ;
719- opt->setInt (10 );
734+ opt->setInt (1 );
720735
721736 /* tranasaction size */
722737 opt = newOption (Option::INT, Option::TRANSACTIONS_SIZE, " trx-size" );
723738 opt->help = " average size of each trx" ;
724- opt->setInt (100 );
725-
726- /* commit to rollback ratio */
727- opt = newOption (Option::INT, Option::COMMMIT_TO_ROLLBACK_RATIO,
728- " commit-rollback-ratio" );
729- opt->help = " ratio of commit to rollback. e.g.\n if 5, then 5 "
730- " transactions will be committed and 1 will be rollback.\n "
731- " if 0 then all transactions will be rollback" ;
732- opt->setInt (5 );
739+ opt->setInt (10 );
740+
741+ /* probability of executing commit */
742+ opt = newOption (Option::INT, Option::COMMIT_PROB, " commit-prob" );
743+ opt->help = " probability of executing commit after a transaction. Else it "
744+ " would be rollback " ;
745+ opt->setInt (95 );
733746
734747 /* number of savepoints in trxs */
735- opt = newOption (Option::INT, Option::SAVEPOINT_PRB_K, " savepoint-prb -k" );
736- opt->help = " probability of using savepoint in a transaction.\n Also 25 % "
748+ opt = newOption (Option::INT, Option::SAVEPOINT_PRB_K, " savepoint-prob -k" );
749+ opt->help = " probability of using savepoint in a transaction.\n Also 10 % "
737750 " such transaction will be rollback to some savepoint" ;
738- opt->setInt (50 );
751+ opt->setInt (10 );
739752
740753 /* steps */
741754 opt = newOption (Option::INT, Option::STEP, " step" );
0 commit comments