Skip to main content

Optimization

BIJECTIVE_FUNCTION

bijective_function(Function f)
STABLE

Is function f bijective?


CODE_OPERATORS

code_operators(Charstring fn) -> Bag of Integer
STABLE

No description.


CODE_TRAIL

code_trail(Charstring fn) -> Vector
STABLE

No description.


code_trail(Function fno) -> Vector
STABLE

No description.


COSTHINT

costhint(Function f, Charstring bpat, Object q) -> Function
STABLE

No description.


costhint(Charstring fn, Charstring bpat, Object h) -> Function
STABLE

Define cost model for function named fn and binding pattern bpat.

 If `h` is a vector `[c,f]` it defines a constant cost `c` and fanout `f`.
If `h` is a function it computes the cost and fanout

COSTHINTS

costhints(Function fn)->Bag of (Charstring, Object)
STABLE

Get all cost models for binding patterns of function fn


ENABLE_TYPE_REWRITES

enable_type_rewrites(Boolean flag)
STABLE

No description.


EXPORT_PLAN

export_plan(Charstring fn, Charstring file) -> Bag of Function
STABLE

Write execution plans of resolvents of f into file


EXPORT_PLANS

export_plans(Vector of Charstring fns, Charstring file) -> Bag of Function
STABLE

Write execution plans of resolvents of fns into file


FULLY_COMPILED

fully_compiled(Vector of Charstring fns)
STABLE

Are all resolvents of fns fully compiled?


fully_compiled(Charstring fn)
STABLE

Are all resolvents of fn fully compiled into SLAP?


OPTMETHOD

optmethod(Charstring m) -> Charstring r
STABLE

Choose query optimization method m for optimizing queries:

 exhaustive: dynamic programming
ranksort: greedy ranking
randomopt: randomized optimization

PARTEVAL

parteval(Charstring fn) -> Bag of Function
STABLE

Declare resolvents of function named fn to be partially evaluated


PLAN_COST

plan_cost(Charstring fn)->Bag of (Real, Real)
STABLE

The estimated cost of executing resolvents of function named fn


plan_cost(Function f)->Bag of (Real, Real)
STABLE

The estimated cost of executing resolvents of function f


plan_cost(Charstring fn, Charstring bpat)->(Real, Real)
STABLE

The estimated cost of executing function named fn

 for binding pattern `bpat` 

PLAN_OPERATORS

plan_operators(Charstring fn) -> Bag of Integer
STABLE

No description.


PLAN_TRAIL

plan_trail(Function fno) -> Vector
STABLE

No description.


plan_trail(Charstring fn) -> Vector
STABLE

No description.


QUERY_PLAN_TRAIL

query_plan_trail(Charstring query) -> Vector
STABLE

No description.


RECOMPILE

recompile(Function f) -> Bag of Function
STABLE

Recompile resolvents of function f


recompile(Charstring fn) -> Bag of Function
STABLE

Recompile function named fn


REOPTIMIZE

reoptimize(Function f) -> Bag of Function
STABLE

Reoptimize execution plan of function f, including all subqueries


reoptimize(Charstring fn) -> Bag of Function
STABLE

Reoptimize execution plan of function named fn,

  including all subqueries 

UNCACHE_COSTS

uncache_costs( ) -> Integer
STABLE

Uncache costs of all functions


UNPARTEVAL

unparteval(Charstring fn) -> Bag of Function
STABLE

Make resolvents of function named fn not be partially evaluated