-
Notifications
You must be signed in to change notification settings - Fork 409
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expose
administer statistics_update()
(#8335)
There's no reason to keep this private given that `vacuum()` is public. Oh, and teach `vacuum()` to run `statistics_update` (i.e `VACUUM ANALYZE`).
- Loading branch information
Showing
5 changed files
with
127 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
.. versionadded:: 6.0 | ||
|
||
.. _ref_admin_statistics_update: | ||
|
||
============================== | ||
administer statistics_update() | ||
============================== | ||
|
||
:eql-statement: | ||
|
||
Update internal statistics about data. | ||
|
||
.. eql:synopsis:: | ||
administer statistics_update "(" | ||
[<type_link_or_property> [, ...]] | ||
")" | ||
|
||
|
||
Description | ||
----------- | ||
|
||
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. | ||
|
||
:eql:synopsis:`<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. | ||
|
||
|
||
Examples | ||
-------- | ||
|
||
Update the statistics on type ``SomeType``: | ||
|
||
.. code-block:: edgeql | ||
administer statistics_update(SomeType); | ||
Update statistics of type ``SomeType`` and the link ``OtherType.ptr``. | ||
|
||
.. code-block:: edgeql | ||
administer statistics_update(SomeType, OtherType.ptr); | ||
Update statistics on everything that is user-accessible in the database: | ||
|
||
.. code-block:: edgeql | ||
administer statistics_update(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters