Data processing and creation method, device and electronic equipment for distributed database

By obtaining data characteristics and business requirement characteristics to generate a distributed data model, it solves the problem of high threshold for users to build distributed data models and realizes convenient distributed database services.

CN112395366BActive Publication Date: 2024-09-24ALIBABA GROUP HOLDING LTD
View PDF 12 Cites 0 Cited by

Patent Information

Application Number
CN201910763294.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-08-19
Publication Date
2024-09-24
Estimated Expiration
2039-08-19

AI Technical Summary

Technical Problem

In the existing technology, users need to have certain domain knowledge and experience to build a suitable distributed data model by themselves, which brings inconvenience to users.

Method used

By obtaining the data characteristics and business demand characteristics of the data table to be created by the user, a data distribution strategy is generated, and based on this, a distributed data model is generated and recommended to users, thereby lowering the modeling threshold of distributed databases.

Benefits of technology

Abstract the modeling process into information interaction and feature extraction processes, make full use of the modeling capabilities of the data service platform, and provide convenient distributed data services for non-professional users.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112395366B
    Figure CN112395366B
Patent Text Reader

Abstract

The embodiment of the present invention provides a method, device and electronic device for data processing and creation of a distributed database, wherein the method includes: obtaining data features of a data table to be created by a user; generating a data distribution strategy according to the data features; and generating a distributed data model for processing the data table according to the data distribution strategy. The embodiment of the present invention can lower the modeling threshold of a distributed database, abstract the modeling process into information interaction and feature extraction processes, make full use of the modeling capabilities of a data service platform to establish a suitable distributed data model for users, and enable non-professional users to more conveniently use the distributed data services provided by the data service platform.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to a method, device and electronic equipment for processing and creating data of a distributed database, and belongs to the field of computer technology. Background Art

[0002] With the development of distributed data processing technology, users can build their own databases and perform various data business processing based on the services provided by the data service platform. For example, in distributed database systems, MPP (Massively Parallel Processing) technology is widely used. In a non-shared database cluster, each node has an independent disk storage system and memory system. Business data is divided into various nodes according to the database model and application characteristics. Each data node is connected to each other through a dedicated network or a commercial general network, and they work together to provide database services as a whole.

[0003] In this type of distributed data application, users need to perform distributed data model transaction modeling based on the database platform, and the modeling process requires certain domain knowledge and experience. For example, in the prior art, it is often necessary to use technical documents and training to enable users to understand the principles of MPP databases and have certain optimization skills for such databases so that they can build a suitable distributed data model by themselves. This method brings great inconvenience to users. Summary of the invention

[0004] The embodiment of the present invention provides a method, device and electronic device for processing and creating data of a distributed database, so as to facilitate users to build a distributed database.

[0005] In order to achieve the above object, an embodiment of the present invention provides a data processing method of a distributed database, comprising:

[0006] Get the data characteristics of the data table to be created by the user;

[0007] generating a data distribution strategy according to the data characteristics;

[0008] According to the data distribution strategy, a distributed data model for processing the data table is generated.

[0009] The embodiment of the present invention also provides a method for creating a distributed database, comprising:

[0010] In response to a user's request to create a data table, obtaining field characteristics of the data table to be created by the user;

[0011] Obtaining business requirement characteristics of the data table;

[0012] Generate a data distribution strategy according to the field characteristics and the business demand characteristics;

[0013] According to the data distribution strategy, one or more distributed data models for processing the data table are generated and recommended to the user.

[0014] The embodiment of the present invention further provides a data processing device for a distributed database, comprising:

[0015] A first feature acquisition module is used to acquire data features of a data table to be created by a user;

[0016] A first strategy generating module, used for generating a data distribution strategy according to the data characteristics;

[0017] The model creation module is used to generate a distributed data model for processing a data table according to the data distribution strategy.

[0018] The embodiment of the present invention further provides a distributed database creation device, comprising:

[0019] A second feature acquisition module is used to respond to a user's request to create a data table and acquire field features of the data table to be created by the user;

[0020] A third feature acquisition module is used to acquire the business demand features of the data table;

[0021] A second strategy generating module, used to generate a data distribution strategy according to the field characteristics and the business requirement characteristics;

[0022] The model recommendation module generates one or more distributed data models for processing the data table according to the data distribution strategy, and recommends them to the user.

[0023] An embodiment of the present invention further provides an electronic device, including:

[0024] Memory, used to store programs;

[0025] The processor is used to run the program stored in the memory to execute the aforementioned distributed database data processing method.

[0026] The data processing and creation method, device and electronic device of the distributed database of the embodiment of the present invention obtains the data characteristics of the data table to be created by the user, generates a data distribution strategy, and then establishes a distributed data model for the user. Through such a process, the modeling threshold of the distributed database can be lowered, and the modeling process can be abstracted into information interaction and feature extraction process. The modeling capability of the data service platform is fully utilized to establish a suitable distributed data model for the user, which allows non-professional users to use the distributed data services provided by the data service platform more conveniently.

[0027] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 A schematic diagram of an application scenario for establishing a data table for a user in an embodiment of the present invention;

[0029] Figure 2 A schematic diagram of a flow chart of a data processing method of a distributed database according to an embodiment of the present invention;

[0030] Figure 3 A schematic diagram of a process for creating a distributed database according to an embodiment of the present invention;

[0031] Figure 4 A schematic diagram of the structure of a data processing device for a distributed database according to an embodiment of the present invention;

[0032] Figure 5 A schematic diagram of the structure of a device for creating a distributed database according to an embodiment of the present invention;

[0033] Figure 6 Schematic diagram of the structure of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0034] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0035] The technical solution of the present invention is further illustrated by some specific embodiments below.

[0036] In the MPP (Massively Parallel Processing) distributed database system, each node in the non-shared cluster has an independent disk storage system and memory system. Business data is divided into each node according to the database model and application characteristics. Each data node is connected to each other through a dedicated network or a commercial general network, and they work together to provide database services as a whole. Non-shared database clusters have the advantages of full scalability, high availability, high performance, excellent cost performance, and resource sharing. However, in order to use the MPP-based distributed database system, users need to perform data modeling. The data modeling mentioned here refers to the abstract organization of various types of data in the real world, determining the scope of the database to be governed, the organizational form of the data, etc., until it is transformed into a real database.

[0037] In the embodiment of the present invention, the data service platform guides the user according to the user's data characteristics and needs, so that a suitable distributed data model can be automatically established or recommended to the user, thereby making it more convenient for the user to use.

[0038] like Figure 1 As shown, it is a schematic diagram of an application scenario in which a user establishes a data table in an embodiment of the present invention. According to their own business needs, the user will create a data table in the distributed database system provided by the data service platform. As shown in the figure, based on the technical solution of the embodiment of the present invention, in the process of the user establishing the data table, the user can be guided to input some data features, so that the data service platform can analyze the characteristics of the user data and user needs. As shown in the figure, the following feature information can be obtained through information interaction with the user: data volume, commonly used filtering query fields, commonly used UV fields, life cycle, data deletion time field, primary key field, commonly used associated query fields, etc. Based on this information, the data service platform can select suitable data distribution strategies, life cycle management strategies and other data model processing strategies to build a distributed data processing model, and then create a data table that meets the user's needs, and then use the distributed data processing model to process the user's data table.

[0039] After the data table is created, data access and data processing services can be provided to the outside world. Each data table or multiple data tables can be regarded as a distributed database. In a distributed database system, each data table is based on a corresponding distributed data model for data management. These data tables can be, for example, the access log of the website system, which is used to record the daily location data of the website system, or the office database of the enterprise, which is used to record the daily office data of the enterprise and provide office data access and processing services for enterprise employees.

[0040] Based on the technology provided by the embodiment of the present invention, the data service platform can provide diversified distributed database modeling services for many stores. The data service platform can pre-build some basic distributed data models and corresponding data tables based on industry characteristics and store type characteristics. When a user accesses the data service platform, some basic distributed data models and data tables can be recommended to the user based on basic information such as the industry in which the user is located and the type of store operated by the user. For general store users, these basic distributed data models and data tables can meet the needs of users. For some store users with larger scale or more complex business needs, further interaction with users can be carried out to obtain more business demand information and customized processing of personalized distributed data models and data tables for users.

[0041] In addition, when building distributed data models and data tables for users, data features of multiple dimensions can be integrated for construction. In addition to basic data features such as field features, data volume, and access volume, data features of business needs such as UV (unique visitor) demand information, commonly used associated field information, and commonly used filter field information can also be included. In addition, the different dimensions of the store itself are used as the basis for customizing the characteristics of distributed data models and data tables, such as the store's historical data access volume, the overall data characteristics of the industry in which the store is located, and the data characteristics of similar stores. In addition, the service content of the store's waiter / customer service is used as a data feature. For example, the customer service content of a certain store is more about communication content related to travel ticket booking services. Based on this feature, targeted distributed data models and data tables can be built to make ticket booking and planning faster and more efficient.

[0042] The above describes the application scenarios and basic principles of the embodiments of the present invention for users to create a distributed database. The technical solutions of the embodiments of the present invention will be further described below in conjunction with several embodiments.

[0043] Embodiment 1

[0044] In view of the above requirements, an embodiment of the present invention provides a data processing method for a distributed database. The method can be executed on a data service platform to provide users with distributed data services, such as Figure 2 As shown, it is a schematic diagram of a data processing method of a distributed database according to an embodiment of the present invention, and the method includes:

[0045] S101: Obtain data features of the data table to be created by the user. The data features of the data table mentioned here may include field features and business requirement features, etc. Among them, field features are the most basic features of the data table, which may specifically include field lists and field types, and these features generally exist in any type of data table.

[0046] In addition to basic features such as field features, the data features of a data table can also include some business demand features, which are often generated based on the business characteristics of different users. Here, business demand features may include one or more of UV (unique visitor) demand information, commonly used associated field information, commonly used filter field information, business primary key, and field priority information. For example, on some e-commerce platforms, it is often necessary to count the number of effective e-commerce user visits to a certain page or information every day, that is, on the same day, multiple visits by the same e-commerce user will be recorded once, that is, UV demand information. This requires that the generated distributed data model be capable of deduplication based on the access data of e-commerce platform users, so as to obtain UV demand information.

[0047] In addition, the data characteristics of the above data table may also include the size of the data volume and / or the cluster size. The data service platform may determine whether the data table to be established by the current user needs to be partitioned and how to partition it according to the size of the data volume and / or the cluster size. In addition, the data characteristics of the data table may also include the life cycle characteristics of the data, which determines the time for which the corresponding data in the data table needs to be retained.

[0048] Furthermore, the acquisition of data features of the data table can be performed upon receiving a user's request to create a data table, that is, the operation of acquiring data features of the data table to be created by the user can be performed in response to the request. Specifically, the field list and field type can be obtained from the user's request, or the user can be guided to fill in step by step in the form of a dialog box. For the required features, after the user has set the field list and field type, the user can be further guided to fill in, for example, the user can be asked to fill in the required features, data volume, cluster size, etc. through information.

[0049] S102: Generate a data distribution strategy based on data features. The data distribution strategy is used to evenly distribute data on different nodes, so as to balance query work in local operations as much as possible, and to evenly distribute data query tasks on all nodes after decomposing them. The data distribution strategy is the basic information for building a distributed data model. For example, the data distribution strategy introduced above may include the number of data partitions, the size of data partitions, the level of data partitions, etc. Among them, for generating a data distribution strategy, after obtaining the field features of the data table to be created, a basic data distribution strategy can be constructed. For example, based on the field list and field type provided by the user, one of the fields can be selected for partitioning, such as data partitioning according to employee number.

[0050] In addition, as mentioned above, in addition to the basic field characteristics, the data characteristics of the data table can also include the size of the data volume and / or the cluster size. The data service platform can make judgments based on this information. For some data tables with small data scale or small cluster size, partitioning is not required, and a relatively simple storage strategy is adopted. For data tables that need to be partitioned, the number of appropriate data partitions and / or the size of data partitions can be selected according to the size of the data volume and the cluster size, so that the data in the data table can be efficiently managed. For the life cycle characteristics of the data mentioned above, based on this feature, the data service platform can formulate a life cycle management strategy for each data in the data table, regularly screen the data, and update or delete it according to the data life cycle, etc., to improve the efficiency of database operation. In addition, the life cycle characteristics of the data will also involve the formulation of data distribution strategies. For example, data with similar life cycles are placed in the same partition, which facilitates management based on the data life cycle.

[0051] In addition, the aforementioned business demand characteristics are some personalized characteristics for users to establish data tables. The data service platform needs to build a reasonable distributed data model based on these demand characteristics to meet the personalized needs of different users.

[0052] For example, in the above step S101, the user can be guided to provide the following information: to obtain whether the user has UV demand, the user can provide a field for the most frequent UV query, or provide multiple UV fields sorted by priority; to obtain the user's commonly used filter field input, the user can provide a field for the most frequent filter, or provide multiple commonly used filter fields sorted by priority; to obtain the user's business primary key; to obtain the priority information of each field; to obtain the data life cycle and other information. By interacting with the user on this information, the user's demand characteristics are confirmed. Of course, as a user, it is not necessary to provide all of the above information, and it is also feasible to provide only part of it.

[0053] The above demand information can enable the data service platform to execute more targeted partitioning strategies. Based on these demand information, multi-level partitioning strategies and lifecycle management strategies can be specified. For example, you can create a first-level data distribution strategy according to the priority of common filter fields > common associated fields > UV query fields > business primary keys, and generate second-level or higher partitioning strategies in combination with the life cycle. Among them, the life cycle refers to: in the database field, it is used to manage the flow of data in the database throughout its life cycle, such as the entire process from creation and initial storage to its obsolescence and deletion. Multi-level partitioning of data means that when creating a data table, you can choose to slice the data according to a certain key value, such as dividing the level according to the time range or the numerical range, to ensure that when querying, the database can do partition tailoring according to the partition filtering conditions to achieve higher query performance, and can be used to handle data lifecycle management.

[0054] It should be noted that the above-mentioned data distribution strategy and lifecycle management strategy and other processing strategies can be extracted from the policy library of the data service platform. The data service platform can pre-set a variety of processing strategies and store them in the policy library. According to the preset rules, it can select and recommend to the user based on the data characteristics of the data table provided by the user, and can finally determine the processing strategy in the distributed data model through interaction with the user. Of course, a machine learning model can also be used to train the machine learning model based on a large number of samples of the matching relationship between the data characteristics of the data table and the data model processing strategy, so as to learn the matching relationship between the data characteristics of the data table and the data model processing strategy, so as to select a suitable distributed data model processing strategy based on the data characteristics of the data table provided by the user.

[0055] S103: Generate a distributed data model for processing the data table according to the data distribution strategy. It should be noted that the data distribution strategy is the most basic strategy for building a distributed data model. In addition, other processing strategies may also be included, such as lifecycle management strategies, etc. In practical applications, the required strategies may be flexibly selected to build a distributed data model according to the characteristics and needs of user data.

[0056] As introduced in the previous modeling process, one or more data distribution strategies or lifecycle management strategies can be generated in step S102. These strategies can be further provided to the user for judgment. After the user confirms or selects, the selected or confirmed strategy can be used to generate a distributed data model. Through the distributed data model, a data table can be created for the user on the data service platform.

[0057] After the data table is created, the user can perform various data processing on the data table based on the distributed database system as needed. For example, the user can associate the created data table with the user's service program to perform data writing, query, statistics and other operations.

[0058] The following is an example of a specific application scenario to further illustrate the technical solution of the embodiment of the present invention.

[0059] For example, an e-commerce enterprise user uses the data service provided by the data service platform. The e-commerce enterprise user needs to establish an access log (that is, a data table to be created) to record the visits of the e-commerce enterprise's sales page or sales website by the visiting users as customers. Its main demand is to count the daily PV and UV. Among them, PV (pageview) means: each time the user clicks or refreshes, it is counted once. UV (Unique Visitor) means: a user account or terminal access is a visitor, and multiple visits per day will be counted once.

[0060] Based on such a situation, the access log may include the following field information: customer's user ID (which may be a user account or terminal number, customer's device identification code, such as unique device identifier (UDID), anonymous device identifier (OAID), developer anonymous device identifier (VAID) and application anonymous device identifier (AAID), etc.), page access identifier (such as SPM (super position model) number), access time, etc. After the access log is established, each visit of the customer will be recorded in the access log.

[0061] The typical application scenario for the access log is that users need to count the daily PV and UV of a website or page. Such a requirement can be met by processing the access log. Among them, PV statistics: can be obtained by summarizing the access records in the access log and taking the total number of records. UV statistics: can be obtained by removing duplicates from the user identification field of the customer in the access log, and then obtaining the total number of records after removing duplicates.

[0062] The above information can be obtained through information interaction with the user when the user creates a data table as an access log. Based on the analysis of the details of the above access log and the query scenario requirements, the following data feature elements of the access log can be obtained:

[0063] Filter conditions: page access ID, access time;

[0064] Statistical field: Customer's user ID.

[0065] Based on these characteristic elements, the data model processing strategy can be generated as follows: the first-level partition of the MPP model is made according to the user ID (the hash distribution algorithm can be used), and the second-level partition of the MPP model is made according to the access time (format such as 20190601). The second-level partition is used for life cycle management, such as retaining 30 days of historical data. After determining the data model processing strategy, you can create a distributed data model and access log.

[0066] After the distributed data model corresponding to the access log is created, each visit behavior of the customer who visits the e-commerce user will generate a record in the above access log, and the record will be partitioned and lifecycle managed based on the processing of the distributed data model. The e-commerce user can perform statistical queries based on the distributed data model. For example, by filtering the customer access logs of a certain page on a certain day by page access ID and access time, and then summarize this part of the access logs to obtain PV data, and then summarize the results of the user account of this part of the log after delisting to obtain UV data.

[0067] The data processing method of a distributed database in an embodiment of the present invention obtains data features of a data table to be created by a user, generates a data distribution strategy, and then establishes a distributed data model for the user. Such a process can lower the modeling threshold of a distributed database, abstract the modeling process into an information interaction and feature extraction process, and fully utilize the modeling capabilities of a data service platform to establish a suitable distributed data model for the user, so that non-professional users can use the distributed data services provided by the data service platform more conveniently.

[0068] In addition, the embodiment of the present invention also provides a method for creating a distributed database, which can recommend a distributed data model to the user for selection based on the information interaction between the data service platform and the user, so as to assist the user in establishing a data table. Figure 3 As shown, it is a schematic diagram of the process of creating a distributed database according to an embodiment of the present invention, including:

[0069] S201: In response to a user's request to create a data table, obtain field characteristics of the data table to be created by the user, wherein the field characteristics may include a field class table and a field type. This step mainly collects the most basic information of the data table.

[0070] S202: Acquire business demand features of the data table, wherein the business demand features are personalized features of the business corresponding to the user, and may include, for example, UV demand information and / or commonly used associated field information and / or commonly used filter field information and / or business primary key and / or data life cycle features. This step mainly collects personalized demand information based on the data table.

[0071] S203: Generate a data distribution strategy based on the field characteristics and business demand characteristics. In addition to the data distribution strategy, a lifecycle management strategy can also be generated.

[0072] S204: Generate one or more distributed data models for processing data tables according to the data distribution strategy and recommend them to the user. After receiving the recommended distributed data model, the user can choose from the multiple recommended distributed data models according to their own needs to find the model that best suits their needs. In the case where only one model is recommended, the user can also choose whether to use the model. After the user's selection, it can be further fed back to the data service platform to trigger the creation of the data table in step S205.

[0073] S205: In response to the user's selection of the recommended distributed data model, a data table corresponding to the distributed data model is created. The process of creating the data table can be performed by the generated distributed data model, or the data service platform can obtain relevant information according to the previous steps to generate the data table, and then associate it with the corresponding distributed data model.

[0074] Based on such a distributed database creation method, through interaction with users, multiple distributed data models can be generated for users to choose from, so as to assist users in establishing data tables, thereby better meeting users' data processing needs.

[0075] Embodiment 2

[0076] like Figure 4 As shown, it is a schematic diagram of the structure of a data processing device of a distributed database according to an embodiment of the present invention. The processing device can be arranged on the aforementioned data service platform, and includes:

[0077] The first feature acquisition module 11 is used to acquire data features of the data table to be created by the user. The data features may include field features and UV requirement information and / or commonly associated field information and / or commonly filtered field information and / or business primary key and / or field priority information and / or data life cycle features.

[0078] The first strategy generation module 12 is used to generate a data distribution strategy according to data features, and further, a lifecycle management strategy, etc. The data distribution strategy is the basic information for building a distributed data model, and may include the number of data partitions, the scale of data partitions, the level of data partitions, etc. How to generate a data model processing strategy based on various data features has been described in the aforementioned embodiments.

[0079] The model creation module 13 is used to generate a distributed data model for processing a data table according to a data distribution strategy.

[0080] After the data table is created, the user can perform various data processing on the data table based on the distributed database system as needed.

[0081] The data processing device of the distributed database in the embodiment of the present invention obtains the data features of the data table to be created by the user, generates a data distribution strategy, and then establishes a distributed data model for the user. Through such a process, the modeling threshold of the distributed database can be lowered, and the modeling process can be abstracted into information interaction and feature extraction process. The modeling capability of the data service platform is fully utilized to establish a suitable distributed data model for the user, which allows non-professional users to use the distributed data services provided by the data service platform more conveniently.

[0082] In addition, the embodiment of the present invention also provides a distributed database creation device, which can recommend distributed data models to users for selection based on information interaction between the data service platform and the user, so as to assist the user in establishing a data table. Figure 5 As shown, it is a schematic diagram of the structure of a distributed database creation device according to an embodiment of the present invention, including:

[0083] The second feature acquisition module 21 is used to respond to a user's request to create a data table and acquire field features of the data table to be created by the user, wherein the field features may include a field class table and a field type.

[0084] The third feature acquisition module 22 is used to acquire business demand features of the data table, wherein the business demand features may include UV demand information and / or commonly used associated field information and / or commonly used filter field information and / or business primary key and / or data life cycle features.

[0085] The second strategy generating module 23 is used to generate a data distribution strategy according to field characteristics and demand characteristics.

[0086] The model recommendation module 24 generates one or more distributed data models for processing data tables according to the data distribution strategy, and recommends them to the user.

[0087] After receiving the recommended distributed data model, the user can choose from multiple recommended distributed data models according to their own needs to find the model that best suits their needs. In the case where only one model is recommended, the user can also choose whether to use the model. After the user selects, it can be further fed back to the data service platform to trigger the creation of the data table. Therefore, the device can also include:

[0088] The data table creation module 25 is used to create a data table corresponding to the distributed data model in response to the user's selection of the recommended distributed data model.

[0089] Based on such a distributed database creation device, through interaction with users, multiple distributed data models can be generated for users to choose from, so as to assist users in establishing data tables, thereby better meeting users' data processing needs.

[0090] The specific description of the above-mentioned processing process, the detailed description of the technical principle and the detailed analysis of the technical effect have been described in detail in the previous embodiments and will not be repeated here.

[0091] Embodiment 3

[0092] The above embodiments describe the process processing and device structure of the embodiments of the present invention. The functions of the above methods and devices can be implemented by means of an electronic device, such as Figure 6 As shown, it is a schematic diagram of the structure of an electronic device according to an embodiment of the present invention, which specifically includes: a memory 110 and a processor 120.

[0093] The memory 110 is used to store programs.

[0094] In addition to the above-mentioned programs, the memory 110 may also be configured to store various other data to support operations on the electronic device. Examples of such data include instructions for any application or method operating on the electronic device, contact data, phone book data, messages, pictures, videos, etc.

[0095] The memory 110 may be implemented by any type of volatile or nonvolatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0096] The processor 120 is coupled to the memory 110 and is used to execute the program in the memory 110 to perform the operation steps of the distributed database data processing method and the distributed database creation method described in the above embodiments.

[0097] In addition, the processor 120 may also include the various modules described in the aforementioned embodiments to perform data processing of a distributed database and creation of a distributed database, and the memory 110 may be used, for example, to store data required for these modules to perform operations and / or output data.

[0098] The specific description of the above-mentioned processing process, the detailed description of the technical principle and the detailed analysis of the technical effect have been described in detail in the previous embodiments and will not be repeated here.

[0099] Furthermore, as shown in the figure, the electronic device may also include other components such as a communication component 130, a power component 140, an audio component 150, and a display 160. The figure only schematically shows some components, which does not mean that the electronic device only includes the components shown in the figure.

[0100] The communication component 130 is configured to facilitate wired or wireless communication between the electronic device and other devices. The electronic device can access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G / LTE, 5G and other mobile communication networks, or a combination thereof. In an exemplary embodiment, the communication component 130 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 130 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0101] The power supply component 140 provides power to various components of the electronic device. The power supply component 140 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device.

[0102] The audio component 150 is configured to output and / or input audio signals. For example, the audio component 150 includes a microphone (MIC), and when the electronic device is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 110 or sent via the communication component 130. In some embodiments, the audio component 150 also includes a speaker for outputting audio signals.

[0103] The display 160 includes a screen, which may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.

[0104] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0105] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A data processing method for a distributed database, comprising: In response to a user's request to create a data table, obtaining data features of the data table to be created by the user, wherein the data features include field features, and the field features include a field list and field type set by the user; generating a data distribution strategy according to the data characteristics; According to the data distribution strategy, a distributed data model for processing the data table is generated; Wherein, generating a data distribution strategy according to the data characteristics includes: According to the field list and the field type, a field for data partitioning is determined.

2. The method according to claim 1, wherein: The data characteristics also include the size of the data volume and / or the cluster size, and the data distribution strategy at least includes the number of data partitions and / or the size of the data partitions.

3. The method according to claim 1, wherein: The data characteristics also include business demand characteristics, and the data distribution strategy at least includes a multi-level data partitioning strategy.

4. The method according to claim 1, wherein: The data characteristics also include life cycle characteristics of the data, and generating a data distribution strategy based on the data characteristics includes: According to the data characteristics, a data distribution strategy and a lifecycle management strategy are generated.

5. A method for creating a distributed database, comprising: In response to a user's request to create a data table, obtaining field characteristics of the data table to be created by the user, the field characteristics including a field list and field type set by the user; Obtaining business requirement characteristics of the data table; Generate a data distribution strategy according to the field characteristics and the business demand characteristics; Generate a distributed data model of one or more user-processed data tables according to the data distribution strategy, and recommend it to the user; In response to the user selecting a model to be used from the recommended distributed data models, a data table corresponding to the selected model is created.

6. A data processing device for a distributed database, comprising: A first feature acquisition module, configured to, in response to a user's request to create a data table, acquire data features of the data table to be created by the user, wherein the data features include field features, and the field features include a field list and a field type set by the user; A first strategy generating module, used for generating a data distribution strategy according to the data characteristics; A model creation module, used to generate a distributed data model for processing a data table according to the data distribution strategy; The first strategy generation module is used to determine the fields used for data partitioning according to the field list and the field type.

7. A distributed database creation device, comprising: A second feature acquisition module, configured to, in response to a user's request to create a data table, acquire field features of the data table to be created by the user, wherein the field features include a field list and a field type set by the user; A third feature acquisition module is used to acquire the business demand features of the data table; A second strategy generating module, used to generate a data distribution strategy according to the field characteristics and the business requirement characteristics; A model recommendation module generates one or more distributed data models for processing data tables according to the data distribution strategy, and recommends them to users; The data table creation module is used to create a data table corresponding to the selected model in response to the user selecting a model to be used from the recommended distributed data models.

8. An electronic device comprising: Memory, used to store programs; A processor, configured to run the program stored in the memory to execute the distributed data processing method according to any one of claims 1 to 4.

9. An electronic device, comprising: Memory, used to store programs; A processor, configured to run the program stored in the memory to execute the method for creating a distributed database as claimed in claim 5.

Citation Information

Patent Citations

  • Data processing method for database system, and database system

    CN102968503A

  • Life cycle management method and equipment for data file of Hadoop distributed file system

    CN103778148A

  • System and method for flexible distributed massively parallel processing (MPP)

    CN104903887A

  • Distributed database based on hypergraph division and cluster partitioning method of distributed database

    CN106294757A

  • Method and device for managing data warehouse and data mart

    CN109033113A