Cost of a routine

The relative cost of a routine is used by the query optimizer to determine in which order to process WHERE clauses in a SELECT statement. More expensive routines are called after less expensive routines. A cost of 0 indicates that the routine costs about the same as the routines in the reference list that have a cost of 0. The standard formula for computing routine cost is as follows:
lines_of_code + (I/O_operations x 100)

You must follow the general formula to ensure that your routines interact with other DataBlade® module routines in a predictable way.

In this tutorial, all routines are inexpensive and have a cost of 0.