Skip to main content

REFRESH RELATION

Commands › Relations · Admins only, through sercha_define or a tenant file

Starts judging an inferred relation's candidate pairs again, where they are new or their evidence changed. Only a relation made with INFER FROM ... JUDGE is judged; a relation made with AS SELECT is a query and always current.

Syntax​

REFRESH RELATION <name>

Parameters​

ParameterDescription
<name>An inferred relation. SHOW MODEL lists relations; an inferred one has stored of inferred: <rule>.

Usage notes​

  • The judging runs in the background. The statement returns at once.
  • The relation's rows are the pairs the judge accepted, with confidence and evidence columns.
  • REFRESH RELATION of a relation made with AS SELECT is refused with a message saying its rows are always current.

Examples​

REFRESH RELATION about
result
relation about: judging what changed in the background

Not supported​

RefusedWrite instead
A relation without its nameREFRESH RELATION <name>
-- Refused by the engine
REFRESH RELATION

See also​

CREATE RELATION · DROP RELATION · SHOW MODEL