Unlock instant, AI-driven research and patent intelligence for your innovation.

Data processing method and device and electronic equipment

A data processing and data technology, applied in the field of communication, can solve problems such as indefinite combination and multi-dimensional query

Active Publication Date: 2020-08-04
CAINIAO SMART LOGISTICS HLDG LTD
View PDF24 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The present invention provides a data processing method, device and electronic equipment, by using a search engine to solve the multi-dimensional query problem of indefinite combination after the horizontal segmentation of the database

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Data processing method and device and electronic equipment
  • Data processing method and device and electronic equipment
  • Data processing method and device and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0100] Based on the idea of ​​the above data processing scheme, such as image 3 As shown, it is the flow of the data processing method shown in the embodiment of the present invention Figure 1 , which can be accessed via figure 2 The execution of the data processing device 230 shown in is completed. Such as image 3 As shown, the data processing method includes the following steps:

[0101] S310. Obtain the horizontally segmented original data in the database, and aggregate the original data to form an intermediate state data table.

[0102] Wherein, the database may be a relational database. After the database data is split horizontally, the data will be distributed in at least one main table (such as figure 1 The main form A) and at least one additional form (such as figure 1 In the attached table B).

[0103] In order to synchronously transmit each attribute column in a piece of data to the search engine, it is necessary to aggregate the attributes in the attached...

Embodiment 2

[0109] Such as Figure 4 Shown is the flow of the data processing method of the embodiment of the present invention Figure II . The difference from the method shown in Embodiment 1 is that a preferred implementation scheme of aggregating raw data to form an intermediate state data table is adopted. Such as Figure 4 As shown, the following steps can also be performed at the beginning of the method:

[0110] S410. Obtain the horizontally segmented original data in the database.

[0111] Wherein, the original data may include main table data and supplementary table data.

[0112] S420, adding a multi-value column field in the main table.

[0113] For example, in figure 1 Add a KeyValue field in main table A as a multi-value column field. The so-called multi-value column means that there can be multiple attribute values ​​in the column.

[0114] S430. Write the extended attribute in the attached table that belongs to the same primary key as the main table in the form of ...

Embodiment 3

[0126] Such as Figure 5 Shown is the flow of the data processing method of the embodiment of the present invention Figure three . The difference from the method shown in Embodiment 1 is that this embodiment mainly focuses on the elaboration of the corresponding processing when the processed database data is the main table data. Such as Figure 5 As shown, the method includes the following steps:

[0127] S510. Obtain main table data of at least one main table that has been horizontally split in the database.

[0128] For example, the main table data of at least one of the above-mentioned main table A in the relational database that has been split horizontally is acquired.

[0129] S520. Synchronize the master table data to the preset search engine, and set an index for the data.

[0130] Since the data structures of the master tables A are the same, each master table A can be directly synchronized to the search engine without data aggregation (that is, cross-cutting). ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the invention provides a data processing method and device and electronic equipment, and the method comprises the steps: obtaining original data, which is segmented horizontally, ina database, and carrying out the aggregation of the original data to form an intermediate state data table; and synchronizing the data in the intermediate state data table to a preset search engine, and setting an index for the data. According to the scheme of the embodiment of the invention, the problem of indefinite combination multi-dimensional query after horizontal segmentation of the database is solved by using a search engine.

Description

technical field [0001] The present application relates to the technical field of communications, and in particular to a data processing method, device and electronic equipment. Background technique [0002] Horizontal sharding refers to horizontally distributing data to different databases or tables through a series of sharding rules. For a large amount of data, if the bottom layer uses MySQL database table horizontal segmentation (sub-database and sub-table) to store the main table + supplementary table data, the following scheme is often used to solve the comprehensive query of cross-shard random combination columns: [0003] 1. Set an appropriate index for the query condition. When there are many query conditions combined randomly, it will make it difficult for the query to reach the correct index, which will cause the query to time out; in addition, the random combination of multi-dimensional query conditions also makes the index construction cost very high, and the ind...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F16/22G06F16/245
CPCG06F16/2228G06F16/2282G06F16/245
Inventor 薛巍
Owner CAINIAO SMART LOGISTICS HLDG LTD