Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

Clickhouse max_table_to_drop #2215

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions docs/products/clickhouse/howto/manage-databases-tables.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,33 @@
Part of the table definition includes a targeted table engine. The full list of supported table engines in Aiven for ClickHouse can be found :doc:`in this article <../reference/supported-table-engines>`. Aiven for ClickHouse uses ``replicated`` variants of table engines to ensure high availability. Even if you select ``MergeTree`` engine, we will automatically use the replicated variant on our side.

With this knowledge, try out an example dataset described :doc:`over here </docs/products/clickhouse/howto/load-dataset>`.

Remove a table
wojcik-dorota marked this conversation as resolved.
Show resolved Hide resolved
--------------

A table can be removed using either CLI or `Aiven Console <https://console.aiven.io/>`_.

.. note::

You can remove a table of any size if you have the ``DROP`` permission since parameters
``max_table_size_to_drop`` and ``max_partition_size_to_drop`` are disabled for Aiven
services. Consider :doc:`granting
</docs/products/clickhouse/howto/manage-users-roles>` only necessary permissions to your database users.

Check failure on line 62 in docs/products/clickhouse/howto/manage-databases-tables.rst

View workflow job for this annotation

GitHub Actions / prose

[vale] reported by reviewdog 🐶 [Aiven.common_replacements] Use 'ClickHouse' instead of 'clickhouse'. Raw Output: {"message": "[Aiven.common_replacements] Use 'ClickHouse' instead of 'clickhouse'.", "location": {"path": "docs/products/clickhouse/howto/manage-databases-tables.rst", "range": {"start": {"line": 62, "column": 20}}}, "severity": "ERROR"}

Remove a table with CLI
^^^^^^^^^^^^^^^^^^^^^^^

Run the following SQL command to remove your table:

.. code-block:: bash

DROP TABLE NAME_OF_YOUR_DATABASE.NAME_OF_YOUR_TABLE;

Remove a table in the console
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

To remove your table in `Aiven Console <https://console.aiven.io/>`_, take the following steps:

1. Log in to the `Aiven Console <https://console.aiven.io/>`_.
2. Navigate to the table you want to remove: organization > project > service > **Databases and tables**.
3. In the **Databases and tables** view, navigate to the table and select **Actions** menu (**...**) > **Remove** > **Delete table**.
2 changes: 1 addition & 1 deletion docs/products/clickhouse/howto/manage-users-roles.rst
Original file line number Diff line number Diff line change
Expand Up @@ -145,4 +145,4 @@ You can also see the users, their roles, and permissions in the `Aiven web cons
Manage using Terraform
------------------------

You can also manage user roles and access using the `Aiven Provider for Terraform </docs/tools/terraform>`. Try the Aiven Terraform Provider Cookbook recipe, Manage user privileges for Aiven for ClickHouse® services using Terraform<https://aiven.io/developer/manage-user-privileges-clickhouse-terraform>`.
You can also manage user roles and access using the :doc:`Aiven Provider for Terraform </docs/tools/terraform>`. Try Aiven Terraform Provider Cookbook recipe `Manage user privileges for Aiven for ClickHouse® services using Terraform <https://aiven.io/developer/manage-user-privileges-clickhouse-terraform>`_.
Loading