04.04.2013 Views

MySQL OLTP (Transactional) - Hammerora - SourceForge

MySQL OLTP (Transactional) - Hammerora - SourceForge

MySQL OLTP (Transactional) - Hammerora - SourceForge

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Figure 21 Schema Creation End<br />

The schema build is now complete as an example a 200 warehouse build as follows with nearly 100 million<br />

rows should take approximately half an hour or less to create and insert on an up to date 2 socket Linux<br />

server.<br />

The TPC-C schema creation script is a standard <strong>Hammerora</strong> script like any other so you can save it, modify it<br />

and re-run it just like any other <strong>Hammerora</strong> script. For example if you wish to create more than the 1-5000<br />

warehouses available in the GUI you may notice that the last line in the script calls a procedure with all of<br />

the options that you gave in the schema options. Therefore change the second value to any number you like<br />

to create more warehouses, for example the following will create 10000 warehouses.<br />

do_tpcc sut.example.com 3306 10000 root mysql tpcc innodb 8<br />

Similarly change any other value to modify your script. If you have made a mistake simply close the<br />

application and run the following SQL to undo the database you have created.<br />

SQL>drop database tpcc;<br />

When you have created your schema you can verify the contents with SQL or your favourite admin tool as<br />

the newly created user.<br />

mysql> use tpcc;<br />

Database changed<br />

mysql> show tables;<br />

+----------------+

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!