Search
ctrl+/
Ask AI
ctrl+.
Light
Dark
System
Sign in

administer statistics_update()New​

Update internal statistics about data.

administer statistics_update "("
  [type_link_or_property [, ...]]
")"

Updates statistics about the contents of data in the current branch. Subsequently, the query planner uses these statistics to help determine the most efficient execution plans for queries.

type_link_or_property

If a type name or a path to a link or property are specified, that data will be targeted for statistics update. If omitted, all user-accessible data will be analyzed.

Update the statistics on type SomeType:

Copy
administer statistics_update(SomeType);

Update statistics of type SomeType and the link OtherType.ptr.

Copy
administer statistics_update(SomeType, OtherType.ptr);

Update statistics on everything that is user-accessible in the database:

Copy
administer statistics_update();