Foxhound is the better* Database Monitor for SQL Anywhere.
*better: More thorough, more relevant, more effective.
...more Alerts, more All Clears, more details, more control in your hands.
|
[Home] | [Table of Contents] | [Previous Section] | [Next Section] |
Breck Carter
Last modified: February 12, 1998
mail to: bcarter@bcarter.com
A relational database system like SQL Anywhere usually works best when your application processes several rows of data at once (set oriented) rather than one row at a time (record oriented). When you think in terms of sets rather than records your solutions are often shorter, faster, and easier to understand and maintain.
Figure 8A shows a record oriented solution to the request "Find all the employees in department 5 and give them a $10,000 salary increase." This PowerBuilder script is 47 lines long and takes almost 8 seconds to execute, whereas the set oriented script in Figure 8B is 1/4 the length and runs in less than two tenths of a second.
Figure 8A - Slow Record Oriented FETCH And UPDATE Loop
|
Figure 8B - Fast Set Oriented UPDATE Statement
|
[Home] | [Table of Contents] | [Previous Section] | [Next Section] |