Skip to content

HammerDB usage query #71

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

You must be logged in to vote

As per follow up message putting the insert statements in a loop of 10000 iterations inserting 3 lines per insert does insert 30000 rows as would be expected and not 60000 - perhaps the test was ran twice? query after test and test script shown below.

You are now connected to database "test" as user "postgres".
test=# select count(*) from test_table;
 count 
-------
 30000
(1 row)

test=# select * from test_Table limit 10;
 id |     name     
----+--------------
  1 | first row   
  2 | second row  
  3 | third row   
  1 | first row   
  2 | second row  
  3 | third row   
  1 | first row   
  2 | second row  
  3 | third row   
  1 | first row   
(10 rows)
#!/usr/local/bin/tclsh8.6
set…

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by abondvt89
Comment options

You must be logged in to vote
0 replies
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
Converted from issue

This discussion was converted from issue #71 on December 16, 2020 18:23.