INCLUDE_DATA

Quick Testing Tips Your daily feed of short software testing tips…

28Feb/09Off

Simulate Database Processing with a Cross Join

If you use SQL when testing, and you'd like to see how your application works when the database is working hard without much effort, try a CROSS JOIN (also known as a Cartesian product) statement on two large tables. This SQL statement will produce a combination of all the rows in two or more tables, and can really make a database work hard. Be sure to monitor your database to see what effect this has on processing. If it starts to really thrash, try out your web or other application to see how it behaves when the database is under load.

Caution: only do this on a system where you have the ability to do what you like to the database, others aren't depending on it, and you can kill your SQL process if it gets out of control.

Posted By Jonathan Kohl
Filed under: Database Comments Off
Comments (0) Trackbacks (0)

Sorry, the comment form is closed at this time.

Trackbacks are disabled.

Categories

Authors

Pages

Blog performance enhanced by PHP Speedy Blog performance enhanced by PHP Speedy