This article provides a high-level overview of the ALTER SYSTEM
Ditto Query Language (DQL) statement, as well as instructions on how to use it, once offered, to set, reset, and query peer-to-peer system settings.
ALTER SYSTEM
is an advanced system performance tuning feature for configuring and retrieving system settings for your peer-to-peer mesh network.
ALTER SYSTEM
reach out to the Ditto team member.ALTER SYSTEM
Ditto Query Language (DQL) statement, as well as instructions on how to use it, once offered, to set, reset, and query peer-to-peer system settings.
ALTER SYSTEM
statement:
Task | Query |
---|---|
Retrieve current system settings for all configurations. (Retrieving Values) | SHOW ALL |
Retrieve current system settings for a specific configuration. (Retrieving Values) | SHOW |
Change a specific system setting. (Modifying Values) | ALTER SYSTEM SET |
Reset system settings to default configurations. (Resetting Values to Default) | ALTER SYSTEM RESET |
SHOW ALL
statement:SHOW
statement. For example:ditto.store
namespace:
For example, in Swift:
ALTER SYSTEM SET
:
=
and TO
syntax for setting system configurations.Regardless of the syntax you use in your ALTER SYSTEM SET
query, the documents Ditto returns contain the current value of the setting, identified by the setting name.ditto
object. (See Customizing Transports Configurations)
ALTER SYSTEM
in memory rather than persisting them to disk.So, while you can execute your statement to modify a setting at any point during your app’s lifecycle, changing certain settings within your app may not result in immediate effects.SET
statement, add a call to the Execute API method on the ditto.store
namespace. For example, in Swift:
ALTER SYSTEM
query operation fails to execute due to various issues, including:
ALTER SYSTEM SET
query.