[go: up one dir, main page]

CN109815231A - Data fragmentation method, apparatus, computer equipment and storage medium - Google Patents

Data fragmentation method, apparatus, computer equipment and storage medium Download PDF

Info

Publication number
CN109815231A
CN109815231A CN201811600192.4A CN201811600192A CN109815231A CN 109815231 A CN109815231 A CN 109815231A CN 201811600192 A CN201811600192 A CN 201811600192A CN 109815231 A CN109815231 A CN 109815231A
Authority
CN
China
Prior art keywords
data
fragmentation
virtual field
partition
subregion
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811600192.4A
Other languages
Chinese (zh)
Inventor
何运清
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Asiainfo Technologies China Inc
Original Assignee
Asiainfo Technologies China Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Asiainfo Technologies China Inc filed Critical Asiainfo Technologies China Inc
Priority to CN201811600192.4A priority Critical patent/CN109815231A/en
Publication of CN109815231A publication Critical patent/CN109815231A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本申请涉及一种数据分片方法、装置、计算机设备和存储介质。所述方法包括:根据虚拟字段的值,对所述数据库中数据进行分区存储和对所述分区建立索引,得到分区索引;其中,每个所述分区对应一个所述虚拟字段的值;根据所述分区索引,对所述分区进行数据分片;其中,所述数据分片为对所述分区的数据进行查询和选择,所述查询和选择后的数据放入分片中。采用本方法能够在对数据库中数据进行分片时的数据处理效率。

The present application relates to a data fragmentation method, apparatus, computer equipment and storage medium. The method includes: according to the value of the virtual field, performing partition storage on the data in the database and building an index on the partition to obtain a partition index; wherein, each of the partitions corresponds to a value of the virtual field; The partition index is used to perform data fragmentation on the partition; wherein, the data fragmentation is to query and select the data of the partition, and the data after the query and selection is put into the fragmentation. The method can achieve the data processing efficiency when sharding the data in the database.

Description

Data fragmentation method, device, computer equipment and storage medium
Technical field
This application involves field of computer technology, more particularly to a kind of data fragmentation method, device, computer equipment and Storage medium.
Background technique
With the development of internet technology, higher and higher to the processing requirement of the storage of data and data, in mass data Today of storage, the access mode of data is increasingly taken seriously in database.In existing CRM (Customer Relationship Management, customer relation management) in system, data fragmentation is carried out using the method to data modulus, To realize parallel data processing, and the method progress data fragmentation of data modulus is used to will appear following problem:
Due to use mod function processing mode, can not oracle technology index, thereby resulted in carry out data fragmentation When need full table is scanned, cause in cases where an amount of data is large treatment effeciency it is very low.
Summary of the invention
Based on this, it is necessary in view of the above technical problems, provide a kind of data fragmentation for being capable of providing data-handling efficiency Method, apparatus, computer equipment and storage medium.
A kind of data fragmentation method, which comprises
According to the value of virtual field, data in the database are carried out partitioned storage and establish the subregion to index, Obtain subregion index;Wherein, the value of the corresponding virtual field of each subregion;
It is indexed according to the subregion, data fragmentation is carried out to the subregion;Wherein, the data fragmentation is to the subregion Data inquired and selected, it is described inquiry and selection after data be put into fragment.
In one of the embodiments, the method also includes: into the middle table of database add virtual field;Pass through The value of the virtual field is calculated in relevant field relevant to business datum in the middle table.
The number of the virtual field is greater than or equal to the number of the fragment in one of the embodiments,.
In one of the embodiments, the method also includes: obtain virtual field fragmentation schema mark, the virtual word Section fragmentation schema mark is for distinguishing normal fragmentation schema and virtual field fragmentation schema;According to the virtual field fragmentation schema Mark selects normal fragmentation schema or virtual field fragmentation schema to carry out data fragmentation to the subregion.
In one of the embodiments, the method also includes: receive service processing result;According to the business processing knot Fruit rejects virtual field from the data after fragment, obtains reduced data;The reduced data is migrated to historical data Library or error database.
The service processing result includes business processing successful information and/or business processing in one of the embodiments, Failure information.
It is described according to the service processing result in one of the embodiments, the data after the fragment are rejected empty Quasi- field, obtains reduced data, comprising:
According to the service processing result, SQL assembly query statement is generated;
Data according to virtual field defined in the SQL assembly query statement and literary name allusion quotation, after obtaining fragment;
The virtual field is rejected from the data after the fragment, obtains reduced data;Wherein, in the literary name allusion quotation Including the definition to the virtual field.
A kind of processing method of business, which comprises
By the data after fragment, input parameter, and incoming traffic assembly interface are defined as according to literary name allusion quotation;
The business assembly interface is handled business according to the input parameter, and feedback traffic processing result.
A kind of data fragmentation device, described device include:
Index establishes module, for the value according to virtual field, carries out partitioned storage and right to data in the database The subregion establishes index, obtains subregion index;Wherein, the value of the corresponding virtual field of each subregion;
Fragment module carries out data fragmentation to the subregion for indexing according to the subregion;Wherein, the data point Piece is that the data of the subregion are inquired and selected, and the data after the inquiry and selection are put into fragment.
A kind of computer equipment, including memory and processor, the memory are stored with computer program, the processing Device performs the steps of when executing the computer program
According to the value of virtual field, data in the database are carried out partitioned storage and establish the subregion to index; Wherein, the value of the corresponding virtual field of each subregion;
It is indexed according to the subregion, data fragmentation is carried out to the subregion, the data fragmentation is used for the subregion Data are inquired and are selected, and the data after the inquiry and selection are put into fragment.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor It is performed the steps of when row
According to the value of virtual field, data in the database are carried out partitioned storage and establish the subregion to index; Wherein, the value of the corresponding virtual field of each subregion;
It is indexed according to the subregion, data fragmentation is carried out to the subregion, the data fragmentation is used for the subregion Data are inquired and are selected, and the data after the inquiry and selection are put into fragment.
Above-mentioned data fragmentation method, device, computer equipment and storage medium, by adding virtual field pair in middle table Database carry out subregion, and according to the value of virtual field to the subregion establish index, by index come to carry out data fragmentation, It avoids passing through full table inquiry and carries out data fragmentation, improve the treatment effeciency of data.
Detailed description of the invention
Fig. 1 is the flow diagram of data fragmentation method in one embodiment;
The flow diagram for the step of Fig. 2 is reduced data migration in one embodiment;
Fig. 3 is the flow diagram of the processing method of business in one embodiment;
Fig. 4 is the structural block diagram of data fragmentation device in one embodiment;
Fig. 5 is the internal structure chart of computer equipment in one embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, not For limiting the application.
In one embodiment, as shown in Figure 1, providing a kind of data fragmentation method, comprising the following steps:
Step S120 carries out partitioned storage to data in the database and to the subregion according to the value of virtual field Index is established, subregion index is obtained.Wherein, the value of the corresponding virtual field of each subregion.
Wherein, the number of the subregion is identical as the number of the value of the virtual field, according to the value of the virtual field Corresponding subregion can be found, realizes and the subregion is indexed.Virtual field is equivalent to data dictionary, according to the virtual word The value of section can quickly find corresponding subregion.
Specifically, the virtual field be it is multiple, tables of data is divided into multiple subregions according to multiple virtual fields.Example Such as, it is worth the virtual field for 0, then corresponds to subregion 0, be worth the virtual field for 1, then corresponds to subregion 1, and so on, being worth is 3 Virtual field, then correspond to subregion 3.
Step S130 is indexed according to the subregion, carries out data fragmentation to the subregion;Wherein, the data fragmentation is The data of the subregion are inquired and selected, the data after the inquiry and selection are put into fragment.
It wherein, include the data of at least one subregion according to the data that the data fragmentation obtains, according to the subregion rope Draw, the data of multiple subregions can be obtained, it can be by partition data described in index selection into fragment.For example, there are four A subregion is respectively as follows: subregion 0, subregion 1, subregion 2 and subregion 3, by selecting in 1 to the first fragment of index selection subregion 0 and subregion It selects in 3 to the second fragment of subregion 2 and subregion.
For example, inquiry and the case statement of general existing subregion are as follows:
Select*from ins_user where mod (user_id, 4)=1;Indicate inquiry and selection user_id mould 4 Remaining 1 data, be equivalent to and ins_user table data be divided into 4.
The inquiry of subregion and case statement in the present embodiment the method are as follows:
Select*from ins_user where mod_id=1;Indicate inquiry and select virtual field value for 1 divide Area, wherein the virtual field expression formula added in middle table is mod (user_id, 4), and Ins_user table increases virtual field newly mod_id。
A kind of data fragmentation method in one of the embodiments, further includes: added into the middle table of database virtual Field;The value of the virtual field is calculated by relevant field relevant to business datum in the middle table.
Wherein, the middle table of the database includes multiple relevant fields.For example, relevant field is user_id, indicate to use The ID number at family.Wherein, the calculation method of the value of the virtual field is obtained using the method for modulus, and the size of mould is according to business The data volume of generation determines.Specifically, by MOD function mod, by the dividend that is used as of the relevant field, of subregion Number is used as divisor, and the number of value of the remainder being calculated as virtual field, the subregion is the size of mould.It is described virtual The value of field is stored in variable mod_id.
The number of the virtual field is greater than or equal to the number of the fragment in one of the embodiments,.
A kind of data fragmentation method in one of the embodiments, further includes: virtual field fragmentation schema mark is obtained, The virtual field fragmentation schema mark is for distinguishing normal fragmentation schema and virtual field fragmentation schema;According to the virtual word Section fragmentation schema mark, selects normal fragmentation schema or virtual field fragmentation schema to carry out data fragmentation to the subregion.
Wherein, normal fragmentation schema refers to the existing data fragmentation method generallyd use, and virtual field fragmentation schema refers to Be data fragmentation method employed in the embodiment of the present application.In the present embodiment, due to using TF frame, in TF frame inlet Virtual field fragmentation schema is arranged to identify.
In one embodiment, as shown in Fig. 2, a kind of data fragmentation method, further includes:
Step S131 receives service processing result.
Wherein, the service processing result includes business processing successful information and/or business processing failure information.
Step S132 rejects virtual field from the data after fragment according to the service processing result, obtains processed Data.
Wherein, the data after fragment be from subregion inquire and select, the data of subregion due to being added to virtual field, Virtual field mod_id is only used for the condition of where sentence, but there can be no inside the data of insert, update column, And it cannot modify to the value of virtual field mod_id, wherein virtual field mod_id is stored in data dictionary.This reality It applies example and inquiry table dictionary is needed using TF frame, by table dictionary information come assembled subsequent operation sentence (insert, update Deng), if virtual field mod_id not rejected, it will appear mistake in subsequent assembled action statement (insert, update etc.).
Step S133 migrates the reduced data to historical data base or error database.
Wherein, when service processing result is business processing successful information, the reduced data is migrated to history number According to table;When service processing result is business processing failure information, the reduced data is migrated to wrong data table.
The method through this embodiment can migrate reduced data, avoid after reprocessing the fragment Data.
It is described according to the service processing result in one of the embodiments, the data after the fragment are rejected empty Quasi- field, obtains reduced data, comprising: according to the service processing result, generates SQL assembly query statement;According to described Virtual field defined in SQL assembly query statement and literary name allusion quotation, the data after obtaining fragment;From the data after the fragment The virtual field is rejected, reduced data is obtained;Wherein, in the literary name allusion quotation include definition to the virtual field.
Specifically, SQL assembly query statement is select*from so1.TEST_MOD_PART_FOR_TF where mod_id in(0,1);Indicate inquiry and select virtual field value for 0 and 1 subregion.
In above-mentioned data fragmentation method, subregion is carried out to database by adding virtual field in middle table, and according to void The value of quasi- field, which establishes the subregion, to be indexed, and, to data fragmentation is carried out, avoids passing through full table inquiry by indexing to carry out Data fragmentation improves the treatment effeciency of data.
In one embodiment, as shown in figure 3, providing a kind of processing method of business, which comprises
Data after fragment are defined as input parameter, and incoming traffic assembly interface according to literary name allusion quotation by step S210.
Wherein, the data after fragment are scattered, need to be input parameter to data processing, be spelled by business assembly interface Dress up complete data mode.
Step S220, the business assembly interface are handled business according to the input parameter, and at feedback traffic Manage result.
Wherein, the service processing result includes business processing successful information and/or business processing failure information.Business packet Include but be not limited to sales data inquiry, the inquiry of marketing data query, customer satisfaction with services.
It should be understood that although each step in the flow chart of Fig. 1-3 is successively shown according to the instruction of arrow, These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps Execution there is no stringent sequences to limit, these steps can execute in other order.Moreover, at least one in Fig. 1-3 Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps Completion is executed, but can be executed at different times, the execution sequence in these sub-steps or stage is also not necessarily successively It carries out, but can be at least part of the sub-step or stage of other steps or other steps in turn or alternately It executes.
In one embodiment, as shown in figure 4, providing a kind of data fragmentation device, comprising: index establishes module 320 With fragment module 330, in which:
Index establishes module 320, for the value according to the virtual field, carries out subregion to data in the database and deposits It stores up and the subregion is established and index;Wherein, the value of the corresponding virtual field of each subregion.
Fragment module 330 carries out data fragmentation, the data fragmentation to the subregion for indexing according to the subregion It is inquired and is selected for the data to the subregion.
A kind of data fragmentation device in one of the embodiments, further includes: adding module 310, for database Virtual field is added in middle table, is calculated by relevant field relevant to business datum in the middle table described virtual The value of field.
The number of the virtual field is greater than or equal to the number of the fragment in one of the embodiments,.
A kind of data fragmentation device in one of the embodiments, further includes: identifier acquisition module obtains void for setting Quasi- field fragmentation schema mark, the virtual field fragmentation schema mark is for distinguishing normal fragmentation schema and virtual field fragment Mode;Mode selection module selects normal fragmentation schema or virtual field for identifying according to the virtual field fragmentation schema Fragmentation schema carries out data fragmentation to the subregion.
Wherein, normal fragmentation schema refers to the existing data fragmentation method generallyd use, and virtual field fragmentation schema refers to Be data fragmentation method employed in the embodiment of the present application.In the present embodiment, due to using TF frame, in TF frame inlet Virtual field fragmentation schema is arranged to identify.
A kind of data fragmentation device in one of the embodiments, further includes: Service Processing Structure receiving module is used for Receive service processing result;Virtual field rejects module, for being picked from the data after fragment according to the service processing result Except virtual field, reduced data is obtained;Transferring module, for migrating the reduced data to historical data base or mistake Accidentally database.
Wherein, when service processing result is business processing successful information, the reduced data is migrated to history number According to table;When service processing result is business processing failure information, the reduced data is migrated to wrong data table.
It includes: that query statement establishes unit that the virtual field, which rejects module, in one of the embodiments, is used for basis The service processing result generates SQL assembly query statement;Fragment data acquiring unit, for being inquired according to the SQL assembly Virtual field defined in sentence and literary name allusion quotation, the data after obtaining fragment;Data culling unit, for after the fragment The virtual field is rejected in data, obtains reduced data;It wherein, include determining the virtual field in the literary name allusion quotation Justice.
Specific about data fragmentation device limits the restriction that may refer to above for data fragmentation method, herein not It repeats again.Modules in above-mentioned data fragmentation device can be realized fully or partially through software, hardware and combinations thereof.On Stating each module can be embedded in the form of hardware or independently of in the processor in computer equipment, can also store in a software form In memory in computer equipment, the corresponding operation of the above modules is executed in order to which processor calls.
In one embodiment, a kind of computer equipment is provided, which can be server, internal junction Composition can be as shown in Figure 5.The computer equipment include by system bus connect processor, memory, network interface and Database.Wherein, the processor of the computer equipment is for providing calculating and control ability.The memory packet of the computer equipment Include non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system, computer program and data Library.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The calculating The database of machine equipment is used for storage service data.The network interface of the computer equipment is used to pass through network with external terminal Connection communication.To realize a kind of data fragmentation method when the computer program is executed by processor.
It will be understood by those skilled in the art that structure shown in Fig. 5, only part relevant to application scheme is tied The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to application scheme, specific computer equipment It may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
In one embodiment, a kind of computer equipment, including memory and processor are provided, is stored in memory Computer program, the processor perform the steps of when executing computer program
According to the value of virtual field, data in the database are carried out partitioned storage and establish the subregion to index, Obtain subregion index;Wherein, the value of the corresponding virtual field of each subregion;
It is indexed according to the subregion, data fragmentation is carried out to the subregion;Wherein, the data fragmentation is to the subregion Data inquired and selected, it is described inquiry and selection after data be put into fragment.
In one embodiment, reception service processing result is also performed the steps of when processor executes computer program; According to the service processing result, virtual field is rejected from the data after fragment, obtains reduced data;It will be described processed Data Migration is to historical data base or error database.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated Machine program performs the steps of when being executed by processor
According to the value of virtual field, data in the database are carried out partitioned storage and establish the subregion to index, Obtain subregion index;Wherein, the value of the corresponding virtual field of each subregion;
It is indexed according to the subregion, data fragmentation is carried out to the subregion;Wherein, the data fragmentation is to the subregion Data inquired and selected, it is described inquiry and selection after data be put into fragment.
In one embodiment, it is also performed the steps of when computer program is executed by processor and receives business processing knot Fruit;According to the service processing result, virtual field is rejected from the data after fragment, obtains reduced data;By described in Data Migration is handled to historical data base or error database.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, To any reference of memory, storage, database or other media used in each embodiment provided herein, Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms, Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance Shield all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art It says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the application Range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.

Claims (11)

1.一种数据分片方法,其特征在于,所述方法包括:1. a data fragmentation method, is characterized in that, described method comprises: 根据虚拟字段的值,对所述数据库中数据进行分区存储和对所述分区建立索引,得到分区索引;其中,每个所述分区对应一个所述虚拟字段的值;According to the value of the virtual field, the data in the database is stored in partitions and the partition is indexed to obtain a partition index; wherein each of the partitions corresponds to a value of the virtual field; 根据所述分区索引,对所述分区进行数据分片;其中,所述数据分片为对所述分区的数据进行查询和选择,所述查询和选择后的数据放入分片中。According to the partition index, data sharding is performed on the partition; wherein, the data sharding is to query and select the data of the partition, and the query and selected data are put into the shards. 2.根据权利要求1所述的方法,其特征在于,还包括:2. The method of claim 1, further comprising: 向数据库的中间表中添加虚拟字段;Add virtual fields to the intermediate tables of the database; 通过所述中间表中与业务数据相关的相关字段计算得到所述虚拟字段的值。The value of the virtual field is obtained by calculating the relevant field related to the business data in the intermediate table. 3.根据权利要求1所述的方法,其特征在于,所述虚拟字段的个数大于或等于所述分片的个数。3. The method according to claim 1, wherein the number of the virtual fields is greater than or equal to the number of the slices. 4.根据权利要求1所述的方法,其特征在于,所述方法还包括:4. The method according to claim 1, wherein the method further comprises: 获取虚拟字段分片模式标识,所述虚拟字段分片模式标识用于区分正常分片模式和虚拟字段分片模式;Obtaining a virtual field fragmentation mode identifier, the virtual field fragmentation mode identifier is used to distinguish a normal fragmentation mode and a virtual field fragmentation mode; 根据所述虚拟字段分片模式标识,选择正常分片模式或虚拟字段分片模式对所述分区进行数据分片。According to the virtual field fragmentation mode identifier, select a normal fragmentation mode or a virtual field fragmentation mode to perform data fragmentation on the partition. 5.根据权利要求1所述的方法,其特征在于,所述方法还包括:5. The method according to claim 1, wherein the method further comprises: 接收业务处理结果;Receive business processing results; 根据所述业务处理结果,从分片后的数据中剔除虚拟字段,得到已处理数据;According to the business processing result, virtual fields are removed from the fragmented data to obtain processed data; 将所述已处理数据迁移至历史数据库或者错误数据库。The processed data is migrated to a historical database or an error database. 6.根据权利要求5所述的方法,其特征在于,所述业务处理结果包括业务处理成功信息和/或业务处理失败信息。6. The method according to claim 5, wherein the service processing result comprises service processing success information and/or service processing failure information. 7.根据权利要求5所述的方法,其特征在于,所述根据所述业务处理结果,将所述分片后的数据剔除虚拟字段,得到已处理数据,包括:7. The method according to claim 5, wherein, according to the business processing result, the data after the fragmentation is removed from the virtual field to obtain the processed data, comprising: 根据所述业务处理结果,生成SQL拼装查询语句;Generate a SQL assembly query statement according to the business processing result; 根据所述SQL拼装查询语句和表字典中定义的虚拟字段,获取分片后的数据;According to the SQL assembly query statement and the virtual field defined in the table dictionary, obtain the fragmented data; 从所述分片后的数据中剔除所述虚拟字段,得到已处理数据;其中,所述表字典中包括对所述虚拟字段的定义。The virtual field is removed from the fragmented data to obtain processed data; wherein the table dictionary includes the definition of the virtual field. 8.一种业务的处理方法,其特征在于,还包括:8. A business processing method, further comprising: 将分片后的数据,根据表字典定义为输入参数,并输入业务拼装接口;Define the fragmented data as input parameters according to the table dictionary, and enter the business assembly interface; 所述业务拼装接口根据所述输入参数对业务进行处理,并反馈业务处理结果。The service assembly interface processes the service according to the input parameter, and feeds back the service processing result. 9.一种数据分片装置,其特征在于,所述装置包括:9. A data fragmentation device, wherein the device comprises: 索引建立模块,用于根据虚拟字段的值,对所述数据库中数据进行分区存储和对所述分区建立索引,得到分区索引;其中,每个所述分区对应一个所述虚拟字段的值;an index building module, configured to perform partition storage on data in the database and build an index on the partition according to the value of the virtual field to obtain a partition index; wherein, each of the partitions corresponds to a value of the virtual field; 分片模块,用于根据所述分区索引,对所述分区进行数据分片;其中,所述数据分片为对所述分区的数据进行查询和选择。A fragmentation module, configured to perform data fragmentation on the partition according to the partition index; wherein, the data fragmentation is to query and select the data of the partition. 10.一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,其特征在于,所述处理器执行所述计算机程序时实现权利要求1至7中任一项所述方法的步骤。10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein the processor implements the steps of the method according to any one of claims 1 to 7 when the processor executes the computer program . 11.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1至7中任一项所述的方法的步骤。11. A computer-readable storage medium on which a computer program is stored, characterized in that, when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
CN201811600192.4A 2018-12-26 2018-12-26 Data fragmentation method, apparatus, computer equipment and storage medium Pending CN109815231A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811600192.4A CN109815231A (en) 2018-12-26 2018-12-26 Data fragmentation method, apparatus, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811600192.4A CN109815231A (en) 2018-12-26 2018-12-26 Data fragmentation method, apparatus, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN109815231A true CN109815231A (en) 2019-05-28

Family

ID=66601782

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811600192.4A Pending CN109815231A (en) 2018-12-26 2018-12-26 Data fragmentation method, apparatus, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109815231A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110287197A (en) * 2019-06-28 2019-09-27 微梦创科网络科技(中国)有限公司 A data storage method, migration method and device
CN110647577A (en) * 2019-08-02 2020-01-03 威富通科技有限公司 Data cube partitioning method and device, computer equipment and storage medium
CN110888872A (en) * 2019-10-16 2020-03-17 浙江大搜车软件技术有限公司 Data storage method and device, computer equipment and storage medium
CN111008200A (en) * 2019-12-18 2020-04-14 北京数衍科技有限公司 Data query method, device and server
CN111708759A (en) * 2020-06-12 2020-09-25 北京思特奇信息技术股份有限公司 Optimization method and system for big table data migration
CN113807054A (en) * 2021-09-16 2021-12-17 北京沃东天骏信息技术有限公司 Method, device, equipment and computer readable medium for processing data
CN115729890A (en) * 2022-11-30 2023-03-03 天翼云科技有限公司 A Log Indexing Method Based on Pulsar
CN116680294A (en) * 2023-07-10 2023-09-01 中国工商银行股份有限公司 Service data query method, device, computer equipment and storage medium
WO2024108638A1 (en) * 2022-11-23 2024-05-30 深圳计算科学研究院 Adaptive query method based on sharding indexes, and apparatus

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140059018A1 (en) * 2009-09-08 2014-02-27 International Business Machines Corporation Data de-duplication in a distributed network
CN106897409A (en) * 2017-02-16 2017-06-27 北京致远互联软件股份有限公司 Data point library storage method and device
CN107783980A (en) * 2016-08-24 2018-03-09 阿里巴巴集团控股有限公司 Index data generates and data query method and device, storage and inquiry system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140059018A1 (en) * 2009-09-08 2014-02-27 International Business Machines Corporation Data de-duplication in a distributed network
CN107783980A (en) * 2016-08-24 2018-03-09 阿里巴巴集团控股有限公司 Index data generates and data query method and device, storage and inquiry system
CN106897409A (en) * 2017-02-16 2017-06-27 北京致远互联软件股份有限公司 Data point library storage method and device

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110287197A (en) * 2019-06-28 2019-09-27 微梦创科网络科技(中国)有限公司 A data storage method, migration method and device
CN110647577A (en) * 2019-08-02 2020-01-03 威富通科技有限公司 Data cube partitioning method and device, computer equipment and storage medium
CN110888872A (en) * 2019-10-16 2020-03-17 浙江大搜车软件技术有限公司 Data storage method and device, computer equipment and storage medium
CN111008200A (en) * 2019-12-18 2020-04-14 北京数衍科技有限公司 Data query method, device and server
CN111008200B (en) * 2019-12-18 2024-01-16 北京数衍科技有限公司 Data query method, device and server
CN111708759A (en) * 2020-06-12 2020-09-25 北京思特奇信息技术股份有限公司 Optimization method and system for big table data migration
CN113807054A (en) * 2021-09-16 2021-12-17 北京沃东天骏信息技术有限公司 Method, device, equipment and computer readable medium for processing data
WO2024108638A1 (en) * 2022-11-23 2024-05-30 深圳计算科学研究院 Adaptive query method based on sharding indexes, and apparatus
CN115729890A (en) * 2022-11-30 2023-03-03 天翼云科技有限公司 A Log Indexing Method Based on Pulsar
CN116680294A (en) * 2023-07-10 2023-09-01 中国工商银行股份有限公司 Service data query method, device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109815231A (en) Data fragmentation method, apparatus, computer equipment and storage medium
CN106681921B (en) Method and device for realizing data parameterization
CN112148509A (en) Data processing method, device, server and computer readable storage medium
CN113094387A (en) Data query method and device, electronic equipment and machine-readable storage medium
WO2020177743A1 (en) System and method for intelligent guided shopping
CN112631686A (en) Data processing method, data processing device, computer equipment and storage medium
CN110321284B (en) Test data entry method, device, computer equipment and storage medium
CN111737228A (en) Database and table dividing method and device
CN112685091A (en) Service request processing method, device, equipment and medium based on big data
CN110059002B (en) Test data generation method, test equipment, storage medium and device
AU2017268599A1 (en) Method, device, server and storage medium of searching a group based on social network
CN106855862A (en) A kind of quick comparative approach and device
CN113779479A (en) Webpage table editing method, device, equipment and storage medium
CN111538672A (en) Test case layered test method, computer device and computer-readable storage medium
CN107832446B (en) Configuration item information searching method and computing device
CN113918595B (en) Data query method and device
CN105264519B (en) A column database processing method and device
CN110069395B (en) Method and device for simulating asynchronous interface, storage medium and computer equipment
CN113434596B (en) A method and device for generating distributed database test data
US12197946B2 (en) Branch prediction for user interfaces in workflows
CN115828803B (en) Netlist reduction method, chip verification method and computer storage medium
CN112035432A (en) Data replacement and migration method, device and computer equipment
CN113609140A (en) Database operation method and system based on programming language Python
CN117421301B (en) Data migration methods, devices and storage media across database types
CN115114283B (en) Data processing method, device, computer readable medium and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190528