Skip to content

Execute DDL statements in parallel #322

Answered by sm-shaw
coenvk asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,
HammerDB is multithreaded, and the virtual users already run in parallel. Also, it is scripted for exactly this reason, so you change the test scenario however you wish.

So you will want to be running a timed test and here virtual user 1 is the monitor virtual user. So for example in the GUI look in the script editor that is loaded for PostgreSQL and find the following timing section. In this example, it is modified to print out "running bespoke command after 2 mins" after 2 minutes. So you can put anything you want in here - to execute an external command use "exec", for SQL commands, see examples later in the driver script.

        puts "Timing test period of $duration in minutes"
 …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@coenvk
Comment options

Answer selected by coenvk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants