Overview
This manual is a comprehensive collection of best practices in using DWS. For each task, a detailed description of the solution and operation procedures is provided. Check this manual based on the task at hand.
Category |
Document Name |
Description |
---|---|---|
Import/Export |
Describes how to import data to and export data from DWS using tools. |
|
Describes how to upload sample data to OBS, access data in OBS buckets using OBS foreign tables, import data to DWS, or export data from a DWS table to an OBS bucket. |
||
Using GDS to Import Table Data from a Remote Server to a DWS Cluster |
Describes how to use GDS to import data on a remote server to DWS. |
|
Describes how to enable DWS to remotely access or read MRS data sources using an HDFS foreign table. |
||
Enabling Cross-Cluster Access of Hive Metastore Through an External Schema |
Describes how to enable a decoupled storage and compute cluster to remotely access HiveMetaStore metadata using an external schema. |
|
Describes how to import data from DLI to DWS using the DWS foreign table function. |
||
Describes how to export data in ORC format to MRS using an HDFS foreign table. |
||
Data migration |
Describes how to migrate data from Oracle tables to DWS. |
|
Describes how to use Cloud Data Migration (CDM) to migrate MySQL data to DWS in batches. |
||
Using a Flink Job of DLI to Synchronize MySQL Data to a DWS Cluster in Real Time |
Describes how to use a Flink job of DLI to synchronize MySQL data to DWS in real time. |
|
Describes how to use CDM to migrate data from Hologres to DWS. |
||
Using Kettle to Migrate Small Tables from AWS Redshift to a DWS Cluster |
Describes how to use the open-source tool Kettle to migrate data from AWS Redshift to DWS. |
|
Using CDM to Migrate Data from AnalyticDB for MySQL to a DWS Cluster |
Describes how to use CDM to migrate data from AnalyticDB for MySQL to DWS. |
|
Using a Flink Job of DLI to Synchronize Kafka Data to a DWS Cluster in Real Time |
Describes how to use a Flink job of DLI to synchronize consumption data of DMS for Kafka to DWS in real time. |
|
Describes how to migrate 15 million rows of data between two DWS clusters within minutes based on the high concurrency of GDS import and export. |
||
Data analysis |
Using DWS to Query Vehicle Routes at Traffic Checkpoints in Seconds |
Describes how to analyze passing vehicles at checkpoints. In this practice, 890 million data records from checkpoints are loaded to a single database table on DWS for accurate and fuzzy query, demonstrating the ability of DWS to perform high-performance query for historical data. |
Using DWS to Analyze the Supply Chain Requirements of a Company |
Describes how to load the sample data set from OBS to a DWS cluster and perform data queries, demonstrating multi-table analysis and theme analysis of DWS in data analysis scenarios. |
|
Using DWS to Analyze the Operational Status of a Retail Department Store |
Describes how to load the daily business data of each retail store from OBS to the corresponding table in the data warehouse, and then summarize and query KPIs such as the store revenue, customer flow, monthly sales ranking, monthly customer flow conversion rate, monthly price-rent ratio, and sales per unit area. |
|
Describes how to install Power BI on a Windows ECS and connect it to DWS using an on-premises data gateway. |
||
Decoupled storage and compute |
Usage Suggestions and Performance Optimization for DWS 3.0 Storage-Compute Decoupled Clusters |
Describes the performance optimization and precautions of the decoupled storage and compute clusters. |
Data development |
Describes what the Turbo engine is. Compared to the original column-store execution engines, the Turbo engine optimizes memory and disk storage formats for strings and numeric types, and enhances the performance of common operators like SORT, AGGREGATE (AGG), JOIN, and SCAN. This results in doubling the overall performance of the executor and significantly reducing compute costs. |
|
Cutting Costs by Switching Between Cold and Hot Data Storage in DWS |
Describes hot and cold data switchover of DWS to ensure that in scenarios where the data volume increases sharply, data can be classified into hot data and cold data based on the data usage frequency of services and managed at different levels. This improves the analysis performance and reduces costs. |
|
Describes how DWS automatically manages partitions. Based on the table-level parameters (period and ttl), DWS can automatically create partitions and delete expired partitions. This function is available for time-based partitioned tables (such as orders and IoT data). This function frees users from maintaining partitioned tables, significantly reducing O&M costs and improving query performance. |
||
Improving Development Efficiency by Leveraging the View Decoupling and Rebuilding Function |
Describes when and how to use the automatic view rebuilding function. Base table objects cannot be modified independently due to view and table dependency. To solve this problem, DWS supports view decoupling and rebuilding. |
|
Shows how to update and delete traditional column-store tables using the delta table mechanism of HStore tables, optimizing storage and performance. |
||
Best Practice of Converting a Time Series Table to an HStore Table |
Describes the benefits of HStore tables over time series tables in terms of data import, compression ratio, and query performance. Therefore, you are advised to replace time series tables with HStore tables. |
|
Describes how to use GIN indexes to search through array and JSONB types, as well as how to conduct full-text searches. |
||
Describes SQL function encryption provided by DWS. Data encryption is widely used in information systems to prevent unauthorized access and data leakage. As the core of an information system, DWS also provides data encryption functions, including transparent encryption and SQL function encryption. |
||
Describes how to use views to allow various users to access specific data within a given table, ensuring data permissions management and security. |
||
Database management |
Provides an example of applying the role-based access control (RBAC) model to DWS. RBAC grants permissions to roles so that users can obtain the permissions of these roles by associating with the roles. |
|
Describes how to configure the read-only permission for an IAM user. |
||
Describes the permissions of system administrators and common users and describes how to create users and query user information. |
||
Provides SQL examples for querying tables and databases. |
||
Describes best practices and examples for creating and managing sequences. |
||
Performance tuning |
Optimizing Table Structure Design to Enhance DWS Query Performance |
Describes how to optimize table performance in DWS by properly designing the table structure (for example, by selecting the table model, table storage mode, compression level, distribution mode, distribution column, partitioned table, and local clustering). |
Describes how to adjust SQL statements according to certain rules to improve the SQL execution while ensuring correct results. |
||
Provides methods for querying data skew. |
||
Analyzing SQL Statements That Are Being Executed to Handle DWS Performance Issues |
Describes how to use the PG_STAT_ACTIVITY view to analyze and locate SQL problems, such as excessive SQL connections, long SQL query time, and SQL query blocking, that developers may encounter during development. |
|
Cluster management |
Binding Different Resource Pools to Two Types of Jobs to Balance Load for DWS |
Demonstrates how to use DWS for resource management, helping enterprises eliminate bottlenecks in concurrent queries. SQL jobs can run smoothly without affecting each other and consume less resources than before. |
Scaling Options for DWS with a Coupled Storage-Compute Architecture |
Describes a critical feature for cloud services, scalability. It refers to cloud services' ability to increase or decrease compute and storage resources to meet changing demand, achieving a balance between performance and cost. |
|
Security management |
Provides actionable guidance for enhancing the overall security of your service data when using DWS. |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot