Considerations for Executing SQL Commands
Considerations for Executing SQL Commands#
The execution of certain SQL commands carries inherent risks or requires special attention to avoid inadvertent operations. This document summarizes relevant commands, and if you have any questions about these operations, feel free to engage in discussions on our community channels to prevent potential losses in your development and production environments.
SQL Command |
Notes |
---|---|
CREATE TABLE |
1. If no index is specified in the table creation statement, an |
DROP TABLE |
1. Table deletion is asynchronous by default. After completion, the deletion of data within the table is performed asynchronously. |
INSERT |
If the operation fails, some data may have already been inserted. |
DELETE |
1. Deleted data is not immediately physically removed from memory; it requires an expiration deletion interval (i.e., the |
CREATE INDEX |
1. Creating an index is an asynchronous operation. It may take some time for the |
DROP INDEX |
1. After deleting an index, if you want to recreate the same index, you need to wait for two expiration deletion intervals (i.e., the |
DEPLOY |
1. The DEPLOY command may modify the TTL of related tables. Data imported before executing DEPLOY may be eliminated before the new TTL takes effect, with the new TTL taking effect after two |
DROP DEPLOYMENT |
1. Does not clean up automatically created indexes. |
DROP FUNCTION |
If a deployment currently executing this function exists, it may result in errors or program crashes. |
SHOW COMPONENTS |
1. The result does not include API Server. |
SHOW JOBS |
1. By default, it displays TaskManager jobs. To show NameServer jobs, use the command |
SHOW JOB |
Can only display jobs in TaskManager, does not support displaying jobs in NameServer. |
STOP JOB |
Can only stop jobs in TaskManager, does not support stopping jobs in NameServer. |