Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- SIx Driver RDD v3.00 - Reference Guide - <b>optimizable expressions:</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Optimizable Expressions:

  An optimizable expression is any expression found within the FOR clause
  of a supported command/function that takes on the following form:

      < index key > < relational operator > < constant value >

  An < index key > may be any key of the open indexes in the currently
  selected work area.  Valid relational operators are "=, ==, !=, #, <>,
  <, >, <=, >=, $".  The < constant value > may be any expression that
  evaluates to a constant value.  This includes literal values such as
  "100.00", or any memory variable, field, or user defined function.

  Multiple optimizable expressions may be joined with the .AND. and .OR.
  logical operators to form complex optimizable expressions.  All component
  expressions in a FOR clause need not be index key expressions. A FOR clause
  will still benifit from partial optimization if it contains both indexed
  and non-indexed expressions.

  EXAMPLES:

  If the following tags and keys were active...

      INDEX or TAG          INDEX KEY
      ------------          ---------
      SALARY                Salary
      NAME                  Last+First
      DATE                  Date
      STATE                 State

  ...then the following would be fully optimizable expressions:

    .  Salary > 25000 .AND. Salary < 30000

    .  Last = "Hewson"

    .  Salary > 25000 .AND. Last = "A" .AND. State = "CA"

  Expressions that contain at least one indexed expression are still
  partially optimized.  Note the non-indexed fields.

    .  State = "FL" .AND. Age = 21

    .  Salary > 25000 .AND. Last = "A" .AND. State = "CA" .AND. Zip = "92656"

  If an expression does not contain any optimizable components, the operation
  will simply default to what Clipper would have done in the first place!

  The following are the instances when optimization will not take place.

     . No database in use.
     . Not a SIx Driver workarea.
     . No index(es) in use.
     . Database contains over 524 million records.
     . No matching index keys found.
     . Not enough memory.
     . FILTER/FOR condition contains LOCAL or STATIC variables.
     . Not a logical condition.
     . FILTER/FOR condition contains an extended expression.
     . Matching key found, but in RYO, UNIQUE, or CONDITIONAL
           index that the order is not currently set to.
     . Mach SIx was not linked in (properly).



See Also: m6_IsOptimize() Smart Translations

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson