WO2017005094A1 - Data query method and device - Google Patents

Data query method and device Download PDF

Info

Publication number
WO2017005094A1
WO2017005094A1 PCT/CN2016/086870 CN2016086870W WO2017005094A1 WO 2017005094 A1 WO2017005094 A1 WO 2017005094A1 CN 2016086870 W CN2016086870 W CN 2016086870W WO 2017005094 A1 WO2017005094 A1 WO 2017005094A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
page
information
database
queried
Prior art date
Application number
PCT/CN2016/086870
Other languages
French (fr)
Chinese (zh)
Inventor
林锦成
Original Assignee
阿里巴巴集团控股有限公司
林锦成
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 阿里巴巴集团控股有限公司, 林锦成 filed Critical 阿里巴巴集团控股有限公司
Publication of WO2017005094A1 publication Critical patent/WO2017005094A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/242Query formulation
    • G06F16/2425Iterative querying; Query formulation based on the results of a preceding query

Definitions

  • the present application relates to the field of data processing technologies, and in particular, to a data query method and a data query device.
  • a database is a repository that organizes, stores, and manages data according to its data structure. With the development of information technology and the market, data management is no longer just about storing and managing data, but transforming into a variety of data management methods that users need. There are many types of databases, ranging from the simplest tables that store various data to the large database systems that can store massive amounts of data. With the wide application of large databases, how to quickly query data in the database is particularly important.
  • HBASE In a structured database like mysql, since the primary key is basically sequential, it is easy to query the data based on the primary key.
  • rowkey In the semi-structured storage environment of HBASE, data is stored in the form of key-value, rowkey is the key in the storage of HBASE, analogous to the primary key in mysql, usually the user uses rowkey as the query field.
  • rowkey In HBASE, in order to achieve data balance distribution, generally rowkey does not use self-added value, but uses a hash value, that is, rowKey is irregular. Therefore, in this case, when data query is performed based on rowkey, only one page of data in HBASE can be searched sequentially. This kind of query method, especially in the case of querying a large amount of data, takes a long time and is inefficient.
  • the technical problem to be solved by the embodiments of the present application is to provide a data query method, which can improve data query efficiency.
  • the embodiment of the present application further provides a data query device for ensuring implementation and application of the foregoing method.
  • a data query method including:
  • the data page information includes at least each single page data identifier in the database
  • the data to be queried corresponding to the data to be queried is queried in the requested data.
  • a method for obtaining data page information of the database includes:
  • the data page information is received and added to the memory queue, the data page information including at least a single page data identifier of each page of the database.
  • the to-be-queried data information includes at least one rowkey of the data to be queried.
  • the to-be-queried data information includes a start and stop page of the data to be queried in the database; the data page information further includes page code information corresponding to the single-page data identifier of each page of the database.
  • the to-be-queried data information includes a start page and a data amount of the data to be queried in the database; the data page information further includes page code information and a page corresponding to the single-page data identifier of each page of the database. The amount of data inside.
  • the requesting, by the database, data corresponding to the single page data identifier corresponding to the to-be-queried data information include:
  • the database is a semi-structured storage database with an irregular key value.
  • the embodiment of the present application further discloses a data query device, including:
  • a request receiving unit configured to receive a data query request, where the data query request includes data information to be queried
  • a determining unit configured to determine, according to the data page information of the database obtained in advance, a single page data identifier corresponding to the to-be-queried data information; the data page information includes at least each single page data identifier in the database ;
  • a data requesting unit configured to request, from the database, data corresponding to the single-page data identifier corresponding to the to-be-queried data information
  • the query unit is configured to query, in the requested data, the data to be queried corresponding to the data information to be queried.
  • the device further includes:
  • An information obtaining unit configured to obtain data page information of the database
  • the information acquiring unit includes:
  • a request subunit configured to send a data page information query request to the database
  • the storage subunit is configured to receive the data page information and add it to the memory queue, the data page information including at least a single page data identifier of each page of the database.
  • the data requesting unit includes:
  • Pulling a subunit configured to enable at least two threads to pull different single page data identifiers corresponding to the to-be-queried data information in the memory queue in parallel;
  • the data requesting subunit is configured to occupy the data corresponding to the at least two threads in parallel requesting the pulled single page data identifier from the database.
  • the embodiments of the present application include the following advantages:
  • the embodiment of the present application obtains the data page information by using the single page data identifier in the database, and according to the data page information, can directly obtain a page or a certain page of data corresponding to the data information to be queried in the database for data query,
  • the query method does not need to perform data query page by page in the database, which simplifies the data query process and improves the data query efficiency.
  • FIG. 1 is a flow chart showing the steps of an embodiment of a data query method of the present application
  • FIG. 2 is a flow chart showing the steps of an embodiment of a method for obtaining data page information of a database in the present application
  • FIG. 3 is a flow chart showing the steps of another data query method embodiment of the present application.
  • FIG. 5 is a flow chart showing the steps of another data query method embodiment of the present application.
  • FIG. 6 is a structural block diagram of an embodiment of a data query apparatus of the present application.
  • FIG. 7 is a structural block diagram of another embodiment of a data query apparatus of the present application.
  • FIG. 8 is a structural block diagram of an information acquisition unit in the present application.
  • FIG. 9 is a structural block diagram of a data request unit in the present application.
  • FIG. 1 a flow chart of steps of an embodiment of a data query method of the present application is shown, which may specifically include the following steps:
  • Step 101 Receive a data query request, where the data query request includes data information to be queried.
  • the device for querying data obtains the data to be queried information included in the request after receiving the data query request, and the data to be queried may include at least one data to be queried.
  • the rowkey needs the device to find the data to be queried corresponding to the rowkey in the database; the data information to be queried may also include the start and end pages of the data to be queried in the database, and the device needs to find the start and end page in the database.
  • the data to be queried may also be a start page and a data amount including the data to be queried in the database, and the device needs to satisfy the data amount after the start page is found in the database.
  • the data to be queried may also include other information for querying data, which will not be enumerated here.
  • Step 102 Determine, according to the data page information of the database obtained in advance, a single page data identifier corresponding to the data information to be queried, where the data page information includes at least each single page data identifier in the database.
  • the device obtains the data page information of the database in advance before performing the step, which may be the device requesting the database in advance.
  • the data page information includes at least each order in the database
  • the page data identifier, the single page data identifier can uniquely identify the corresponding data page, for example, in the HBASE database, the marker is the starting identifier of the data page; the data page information can also include a single page with each page in the database.
  • the page data identifies corresponding page number information; it may also include an amount of in-page data corresponding to a single page data identifier of each page of data in the database.
  • a single page data identifier corresponding to the data information to be queried may be determined, and the determined single page data identifier may be one or multiple
  • the data pages corresponding to multiple single page data identifiers may be continuous or discontinuous in the database.
  • Step 103 Request data corresponding to the single page data identifier corresponding to the data information to be queried to the database.
  • the thread may be required to request the data corresponding to the single page data identifier from the database, and when the determined single page data identifier is multiple, the thread may be occupied in parallel to the database. Request data corresponding to each single page data identifier.
  • Step 104 Query the data to be queried corresponding to the data information to be queried in the requested data.
  • the data to be queried can be queried according to the data information to be queried.
  • the data to be queried may be the data requested in the previous step, or may be part of the data in the requested data.
  • the embodiment of the present application obtains the data page information by using the single page data identifier in the database, and according to the data page information, can directly obtain a page or a certain page of data corresponding to the data information to be queried in the database for data query,
  • the query method does not need to perform data query page by page in the database, which simplifies the data query process and improves the data query efficiency.
  • the method for obtaining data page information of a database may include the following steps:
  • Step 201 Send a data page information query request to the database.
  • the device sends a query request to the database.
  • the database After receiving the request, the database obtains at least a single page data identifier of each page of data according to the request, and may also obtain page number information and/or amount of data in the page corresponding to the single page data identifier of each page of data in the database according to the requested content. Generate data page information, then Then return it to the device.
  • Step 202 Receive data page information, and add data page information to a memory queue, where the data page information includes at least a single page data identifier of each page of data in the database.
  • the device After receiving the data page information sent by the data, the device adds it to the memory queue so that it can be quickly called at any time.
  • the device can quickly and easily determine a page or a certain number of pages in the database for data query according to the data query request, and does not simplify the data query process and improve the data query efficiency.
  • FIG. 3 a flow chart of steps of another data query method embodiment of the present application is shown, which may specifically include the following steps:
  • Step 301 Receive a data query request, where the data query request includes at least one rowkey of the data to be queried.
  • the application scenario of this embodiment is to perform a query according to the rowkey of the data.
  • Step 302 Determine, according to the data page information of the database obtained in advance, all the single page data identifiers of the database.
  • the data page information of the database obtained in advance may include only a single page data identifier of each page of data in the database.
  • the single page data identified in this step is identified as all single page data of the database.
  • step 303 at least two threads are enabled to pull all the different single page data identifiers in the memory queue in parallel.
  • multiple threads need to be enabled, and multiple threads execute in parallel.
  • Each thread pulls a single page data identifier in the memory queue, and the single page data identifiers drawn by different threads are different.
  • Step 304 The at least two threads are occupied in parallel to request data corresponding to the pulled single page data identifier from the database.
  • the thread After each thread pulls the single page data identifier, the thread requests the data corresponding to the pulled single page data identifier in parallel.
  • Step 305 Query, in the requested data, the data to be queried corresponding to the rowkey of the data to be queried.
  • each thread inquires the data corresponding to the extracted single page data identifier, and queries the data of the request path in parallel with the data to be queried corresponding to rowkey in step 301.
  • the above threads execute in parallel.
  • the thread can repeatedly execute steps 303-305 until all the single page data identifiers in the database are pulled.
  • FIG. 4 a flow chart of steps of another embodiment of the data query method of the present application is shown, which may specifically include the following steps:
  • Step 401 Receive a data query request, where the data query request includes a start and end page of the data to be queried in the database.
  • the application scenario of this embodiment is to query data between the start and end pages of a specified data page in the database.
  • the start and end page can also be the same page, that is, requesting a page of data in the database.
  • Step 402 Determine, according to the data page information of the database obtained in advance, a single page data identifier of the data page between the start and end pages in the database, where the data page information includes a single page data identifier of each page of the database and corresponding Page number information.
  • the device may determine a single page data identifier of the data page between the start and end pages according to the single page data identifier of each page of data in the database and its corresponding page number information.
  • Step 403 enabling at least two threads to pull the determined different single page data identifiers in the memory queue in parallel.
  • the thread is directly enabled to pull the single page data identifier from the memory queue, and the data corresponding to the single page data identifier is requested from the database.
  • At least two threads are enabled to respectively extract different single page data identifiers in the memory queue.
  • step 303 The process of enabling multiple threads to pull a single page data identification is similar to step 303 in the previous example.
  • Step 404 occupying the at least two threads to request data corresponding to the extracted single page data identifier in parallel to the database.
  • step 304 This process is similar to step 304 in the foregoing embodiment, and details are not described herein again.
  • the data requested in step 404 is the data between the start and end pages of the database requested in step 401.
  • the single-page data identifier is used to request corresponding data from the database, which simplifies the operation process of the database, and can obtain data simultaneously through multiple threads, thereby improving data query efficiency.
  • FIG. 5 a flow chart of steps of another data query method embodiment of the present application is shown, which may specifically include the following steps:
  • Step 501 Receive a data query request, where the data query request includes a start page and a data amount of the data to be queried in the database.
  • the application scenario in this embodiment is that the device needs to query data that reaches the required data amount after the start page.
  • Step 502 Determine, according to the data page information of the database obtained in advance, a single page data identifier corresponding to the start page and the data amount in the database, where the data page information includes a single page data identifier of each page of the database and Corresponding page number information and amount of data in the page.
  • the single page data identifier corresponding to the start page is determined according to the page number information corresponding to the single page data identifier, and then the data after the start page is estimated according to the amount of data in the page corresponding to the single page data identifier and the data amount included in the request. Pages, and determine the single page data identifier corresponding to these data pages. It is possible that the amount of data contained in the request corresponds to all the data in the determined data page, and it is also possible that the amount of data contained in the request is smaller than all the data in the determined data page, for example, in the last data page determined. Need to query some of the data.
  • Step 503 enabling at least two threads to pull the determined different single page data identifiers in the memory queue in parallel.
  • Step 504 occupying the at least two threads to request data corresponding to the pulled single page data identifier in parallel to the database.
  • the steps 503-504 are similar to the steps 403-404 in the foregoing embodiment, and details are not described herein again.
  • Step 505 Query, in the requested data, the data to be queried corresponding to the start page and the data amount of the data to be queried in the database.
  • the data requested in step 504 is the data requested in step 501.
  • the data to be queried can be obtained according to the data volume in the request. .
  • the data processing may be further performed according to the obtained data, for example, data comparison, data backup, and the like.
  • the foregoing method embodiment can be applied to a semi-structured storage database whose database has an irregular key value, such as HBASE, wherein the single page data identifier is a marker.
  • FIG. 6 a structural block diagram of an embodiment of a data query apparatus according to the present application is shown, which may specifically include the following units:
  • the request receiving unit 601 is configured to receive a data query request, where the data query request includes data information to be queried.
  • the determining unit 602 is configured to determine, according to the data page information of the database obtained in advance, a single page data identifier corresponding to the to-be-queried data information; the data page information includes at least each single page data in the database Logo.
  • the data requesting unit 603 is configured to request, from the database, data corresponding to the single page data identifier corresponding to the to-be-queried data information.
  • the querying unit 604 is configured to query, in the requested data, the data to be queried corresponding to the data information to be queried.
  • the device obtains the data page information by using the single page data identifier in the database through the above unit, and according to the data page information, directly obtains a certain one of the database corresponding to the data information to be queried.
  • the page or a few pages of data for data query the device query mode does not need to query the data page by page in the database, which simplifies the data query process and improves the data query efficiency.
  • the device may further include:
  • the information acquisition unit 701 is configured to obtain data page information of the database.
  • the information obtaining unit 701, as shown in FIG. 8, may further include:
  • the request subunit 801 is configured to send a data page information query request to the database.
  • the storage sub-unit 802 is configured to receive the data page information and add it to the memory queue, the data page information including at least a single-page data identifier of each page of the database.
  • the to-be-queried data information may include at least one rowkey of the data to be queried.
  • the to-be-queried data information may further include a start and stop page of the data to be queried in the database; the data page information further includes page code information corresponding to the single-page data identifier of each page of the database.
  • the to-be-queried data information may further include a start page and a data amount of the data to be queried in the database; the data page information further includes a single-page data identifier corresponding to each page of the database. Page number information and the amount of data in the page.
  • the data requesting unit 603 may include:
  • the pull subunit 901 is configured to enable at least two threads to pull different single page data identifiers corresponding to the to-be-queried data information in the memory queue in parallel.
  • the data requesting subunit 902 is configured to occupy the data corresponding to the at least two threads in parallel requesting the extracted single page data identifier from the database.
  • the above database may be a semi-structured storage database with an irregular key value, such as HBASE, wherein the single page data identifier is a marker.
  • the embodiment of the present application further provides an electronic device, including a memory, a transceiver, and a processor.
  • the processor and the memory and the transceiver are connected to each other through a bus; the bus may be an ISA bus, a PCI bus or an EISA bus.
  • the bus can be divided into an address bus, a data bus, a control bus, and the like.
  • the memory is used to store a program, in particular, the program may include program code,
  • the program code includes computer operating instructions.
  • the memory may include a high speed RAM memory and may also include a non-volatile memory such as at least one disk memory.
  • the transceiver is configured to receive a data query request, where the data query request includes data to be queried; and request, by the database, data corresponding to the single page data identifier corresponding to the to-be-queried data information.
  • the processor is used to read the program code in the memory and perform the following steps:
  • the data page information includes at least each single page data identifier in the database
  • the data to be queried corresponding to the data to be queried is queried in the requested data.
  • the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
  • embodiments of the embodiments of the present application can be provided as a method, apparatus, or computer program product. Therefore, the embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Moreover, embodiments of the present application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
  • computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • the computer device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
  • the memory may include non-persistent memory, random access memory (RAM), and/or non-volatile memory in a computer readable medium, such as read only memory (ROM) or flash memory.
  • RAM random access memory
  • ROM read only memory
  • Memory is an example of a computer readable medium.
  • Computer readable media includes both permanent and non-permanent, removable and non-removable media
  • Information storage can be accomplished by any method or technique.
  • the information can be computer readable instructions, data structures, modules of programs, or other data.
  • Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory. (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or other memory technology, compact disk read only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, Magnetic tape cartridges, magnetic tape storage or other magnetic storage devices or any other non-transportable media can be used to store information that can be accessed by a computing device.
  • computer readable media does not include non-persistent computer readable media, such as modulated data signals and carrier waves.
  • Embodiments of the present application are described with reference to flowcharts and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the present application. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG.
  • These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing terminal device to produce a machine such that instructions are executed by a processor of a computer or other programmable data processing terminal device
  • Means are provided for implementing the functions specified in one or more of the flow or in one or more blocks of the flow chart.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing terminal device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the instruction device implements the functions specified in one or more blocks of the flowchart or in a flow or block of the flowchart.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

Disclosed are a data query method and device. The data query method comprises: receiving a data query request, with the data query request including information about data to be queried (101); determining a single-page data identifier corresponding to the information about data to be queried according to data page information about a database acquired in advance, with the data page information at least including every single-page data identifier in the database (102); requesting data corresponding to the single-page data identifier corresponding to the information about data to be queried from the database (103); and querying data to be queried corresponding to the information about data to be queried in the requested data (104). By acquiring data page information by utilizing a single-page data identifier in a database, and according to the data page information, data can be queried by directly acquiring one or more pages of data corresponding to information about data to be queried in the database. The query method simplifies the data query process, and increases the efficiency of data query.

Description

一种数据查询方法和装置Data query method and device 技术领域Technical field
本申请涉及数据处理技术领域,特别是涉及一种数据查询方法和一种数据查询装置。The present application relates to the field of data processing technologies, and in particular, to a data query method and a data query device.
背景技术Background technique
数据库(Database)是按照数据结构来组织、存储和管理数据的仓库。随着信息技术和市场的发展,数据管理不再仅仅是存储和管理数据,而转变成用户所需要的各种数据管理的方式。数据库有很多种类型,从最简单的存储有各种数据的表格到能够进行海量数据存储的大型数据库系统都在各个方面得到了广泛的应用。而随着大型数据库的广泛应用,如何在数据库中快速进行数据查询就显得尤为重要。A database is a repository that organizes, stores, and manages data according to its data structure. With the development of information technology and the market, data management is no longer just about storing and managing data, but transforming into a variety of data management methods that users need. There are many types of databases, ranging from the simplest tables that store various data to the large database systems that can store massive amounts of data. With the wide application of large databases, how to quickly query data in the database is particularly important.
在mysql这种结构化数据库中,由于主键基本上是顺序递增的,因此根据主键进行数据查询是件容易的事情。在HBASE这种半结构化存储环境中,数据以key-value的形式进行分页存储,rowkey是HBASE的存储中的key,类比mysql中的主键,通常用户以rowkey作为查询的字段。而在HBASE中,为了实现数据均衡分布,一般rowkey不会采用自增值,而是使用散列值,也即rowKey是没有规律的。因此,在该情况下,在基于rowkey进行数据查询时,只能在HBASE中一页数据一页数据的依次查找。这种查询方式,尤其在查询大量数据的情况下,耗时较长,效率太低。In a structured database like mysql, since the primary key is basically sequential, it is easy to query the data based on the primary key. In the semi-structured storage environment of HBASE, data is stored in the form of key-value, rowkey is the key in the storage of HBASE, analogous to the primary key in mysql, usually the user uses rowkey as the query field. In HBASE, in order to achieve data balance distribution, generally rowkey does not use self-added value, but uses a hash value, that is, rowKey is irregular. Therefore, in this case, when data query is performed based on rowkey, only one page of data in HBASE can be searched sequentially. This kind of query method, especially in the case of querying a large amount of data, takes a long time and is inefficient.
因此,目前需要本领域技术人员迫切解决的一个技术问题就是:如何能提高数据查询效率。Therefore, a technical problem that needs to be solved urgently by those skilled in the art is how to improve the efficiency of data query.
发明内容Summary of the invention
本申请实施例所要解决的技术问题是提供一种数据查询方法,能提高数据查询效率。The technical problem to be solved by the embodiments of the present application is to provide a data query method, which can improve data query efficiency.
相应的,本申请实施例还提供了一种数据查询装置,用以保证上述方法的实现及应用。 Correspondingly, the embodiment of the present application further provides a data query device for ensuring implementation and application of the foregoing method.
为了解决上述问题,本申请公开了一种数据查询方法,包括:In order to solve the above problem, the present application discloses a data query method, including:
接收数据查询请求,所述数据查询请求中包含待查询数据信息;Receiving a data query request, where the data query request includes data information to be queried;
根据预先获得的数据库的数据页信息,确定出与所述待查询数据信息对应的单页数据标识;所述数据页信息中至少包括所述数据库中的各单页数据标识;Determining, according to the data page information of the database obtained in advance, a single page data identifier corresponding to the to-be-queried data information; the data page information includes at least each single page data identifier in the database;
向所述数据库请求与所述待查询数据信息对应的单页数据标识所对应的数据;Requesting, by the database, data corresponding to the single page data identifier corresponding to the to-be-queried data information;
在所请求到的数据中查询与所述待查询数据信息对应的待查询数据。The data to be queried corresponding to the data to be queried is queried in the requested data.
进一步,获得所述数据库的数据页信息的方法,包括:Further, a method for obtaining data page information of the database includes:
向所述数据库发送数据页信息查询请求;Sending a data page information query request to the database;
接收数据页信息并将其加入内存队列,所述数据页信息中至少包括所述数据库中每页数据的单页数据标识。The data page information is received and added to the memory queue, the data page information including at least a single page data identifier of each page of the database.
进一步,所述待查询数据信息包括至少一个待查询数据的rowkey。Further, the to-be-queried data information includes at least one rowkey of the data to be queried.
进一步,所述待查询数据信息包括待查询数据在数据库中的起止页;所述数据页信息中还包括与所述数据库中每页数据的单页数据标识对应的页码信息。Further, the to-be-queried data information includes a start and stop page of the data to be queried in the database; the data page information further includes page code information corresponding to the single-page data identifier of each page of the database.
进一步,所述待查询数据信息包括待查询数据在数据库中的起始页及数据量;所述数据页信息中还包括与所述数据库中每页数据的单页数据标识对应的页码信息及页内数据量。Further, the to-be-queried data information includes a start page and a data amount of the data to be queried in the database; the data page information further includes page code information and a page corresponding to the single-page data identifier of each page of the database. The amount of data inside.
进一步,当所确定出的与所述待查询数据信息对应的单页数据标识至少为两个时,所述向所述数据库请求与所述待查询数据信息对应的单页数据标识所对应的数据,包括:Further, when the determined single page data identifier corresponding to the to-be-queried data information is at least two, the requesting, by the database, data corresponding to the single page data identifier corresponding to the to-be-queried data information, include:
启用至少两个线程并行在所述内存队列中拉取与所述待查询数据信息对应的不同的单页数据标识;Enabling at least two threads to pull different single page data identifiers corresponding to the to-be-queried data information in the memory queue in parallel;
占用所述至少两个线程并行向所述数据库请求所拉取的单页数据标识所对应的数据。Occupying the at least two threads to request data corresponding to the pulled single page data identifier to the database in parallel.
进一步,所述数据库为key值无规律的半结构化存储数据库。Further, the database is a semi-structured storage database with an irregular key value.
本申请实施例还公开了一种数据查询装置,包括: The embodiment of the present application further discloses a data query device, including:
请求接收单元,被配置为接收数据查询请求,所述数据查询请求中包含待查询数据信息;a request receiving unit, configured to receive a data query request, where the data query request includes data information to be queried;
确定单元,被配置为根据预先获得的数据库的数据页信息,确定出与所述待查询数据信息对应的单页数据标识;所述数据页信息中至少包括所述数据库中的各单页数据标识;a determining unit, configured to determine, according to the data page information of the database obtained in advance, a single page data identifier corresponding to the to-be-queried data information; the data page information includes at least each single page data identifier in the database ;
数据请求单元,被配置为向所述数据库请求与所述待查询数据信息对应的单页数据标识所对应的数据;a data requesting unit, configured to request, from the database, data corresponding to the single-page data identifier corresponding to the to-be-queried data information;
查询单元,被配置为在所请求到的数据中查询与所述待查询数据信息对应的待查询数据。The query unit is configured to query, in the requested data, the data to be queried corresponding to the data information to be queried.
进一步,所述装置还包括:Further, the device further includes:
信息获取单元,被配置为获得所述数据库的数据页信息;An information obtaining unit configured to obtain data page information of the database;
所述信息获取单元包括:The information acquiring unit includes:
请求子单元,被配置为向所述数据库发送数据页信息查询请求;a request subunit configured to send a data page information query request to the database;
存储子单元,被配置为接收数据页信息并将其加入内存队列,所述数据页信息中至少包括所述数据库中每页数据的单页数据标识。The storage subunit is configured to receive the data page information and add it to the memory queue, the data page information including at least a single page data identifier of each page of the database.
进一步,当所述确定单元确定出的与所述待查询数据信息对应的单页数据标识至少为两个时,所述数据请求单元包括:Further, when the determining unit determines at least two single page data identifiers corresponding to the to-be-queried data information, the data requesting unit includes:
拉取子单元,被配置为启用至少两个线程并行在所述内存队列中拉取与所述待查询数据信息对应的不同的单页数据标识;Pulling a subunit, configured to enable at least two threads to pull different single page data identifiers corresponding to the to-be-queried data information in the memory queue in parallel;
数据请求子单元,被配置为占用所述至少两个线程并行向所述数据库请求所拉取的单页数据标识所对应的数据。The data requesting subunit is configured to occupy the data corresponding to the at least two threads in parallel requesting the pulled single page data identifier from the database.
与现有技术相比,本申请实施例包括以下优点:Compared with the prior art, the embodiments of the present application include the following advantages:
本申请实施例通过利用数据库中的单页数据标识获得数据页信息,并依据该数据页信息可以直接获取数据库中的与待查询数据信息对应的某一页或某几页数据进行数据查询,该查询方式无需在数据库中逐页进行数据查询,简化了数据查询过程,提高了数据查询效率。The embodiment of the present application obtains the data page information by using the single page data identifier in the database, and according to the data page information, can directly obtain a page or a certain page of data corresponding to the data information to be queried in the database for data query, The query method does not need to perform data query page by page in the database, which simplifies the data query process and improves the data query efficiency.
附图说明DRAWINGS
图1是本申请的一种数据查询方法实施例的步骤流程图; 1 is a flow chart showing the steps of an embodiment of a data query method of the present application;
图2是本申请中一种获得数据库的数据页信息的方法实施例的步骤流程图;2 is a flow chart showing the steps of an embodiment of a method for obtaining data page information of a database in the present application;
图3是本申请的另一种数据查询方法实施例的步骤流程图;3 is a flow chart showing the steps of another data query method embodiment of the present application;
图4是本申请的另一种数据查询方法实施例的步骤流程图;4 is a flow chart showing the steps of another embodiment of the data query method of the present application;
图5是本申请的另一种数据查询方法实施例的步骤流程图;5 is a flow chart showing the steps of another data query method embodiment of the present application;
图6是本申请的一种数据查询装置实施例的结构框图;6 is a structural block diagram of an embodiment of a data query apparatus of the present application;
图7是本申请的另一种数据查询装置实施例的结构框图;7 is a structural block diagram of another embodiment of a data query apparatus of the present application;
图8是本申请中一种信息获取单元的结构框图;8 is a structural block diagram of an information acquisition unit in the present application;
图9是本申请中一种数据请求单元的结构框图。9 is a structural block diagram of a data request unit in the present application.
具体实施方式detailed description
为使本申请的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本申请作进一步详细的说明。The above described objects, features and advantages of the present application will become more apparent and understood.
参照图1,示出了本申请的一种数据查询方法实施例的步骤流程图,具体可以包括如下步骤:Referring to FIG. 1 , a flow chart of steps of an embodiment of a data query method of the present application is shown, which may specifically include the following steps:
步骤101,接收数据查询请求,该数据查询请求中包含待查询数据信息。Step 101: Receive a data query request, where the data query request includes data information to be queried.
本申请实施例中,该用于查询数据的装置(以下简称该装置)接收到数据查询请求后,获取该请求中包含的待查询数据信息,该待查询数据信息可能是包括至少一个待查询数据的rowkey,需要该装置在数据库中查找到该rowkey对应的待查询数据;该待查询数据信息也可能包括待查询数据在数据库中的起止页,需要该装置在数据库中查找到该起止页之间的数据;该待查询数据信息也可以是包括待查询数据在数据库中的起始页及数据量,需要该装置在数据库中查找到该起始页之后的满足该数据量的数据。当然,该待查询数据信息还可以是包括其它用于查询数据的信息,此处不再一一列举。In the embodiment of the present application, the device for querying data (hereinafter referred to as the device) obtains the data to be queried information included in the request after receiving the data query request, and the data to be queried may include at least one data to be queried. The rowkey needs the device to find the data to be queried corresponding to the rowkey in the database; the data information to be queried may also include the start and end pages of the data to be queried in the database, and the device needs to find the start and end page in the database. The data to be queried may also be a start page and a data amount including the data to be queried in the database, and the device needs to satisfy the data amount after the start page is found in the database. Of course, the data to be queried may also include other information for querying data, which will not be enumerated here.
步骤102,根据预先获得的数据库的数据页信息,确定出与待查询数据信息对应的单页数据标识,该数据页信息中至少包括数据库中的各单页数据标识。Step 102: Determine, according to the data page information of the database obtained in advance, a single page data identifier corresponding to the data information to be queried, where the data page information includes at least each single page data identifier in the database.
该装置在执行本步骤之前,预先获得数据库的数据页信息,具体可以是该装置预先向数据库请求获得的。该数据页信息中至少包括数据库中的各单 页数据标识,单页数据标识可以唯一标识其所对应的数据页,例如,在HBASE数据库中,marker为数据页的起始标识;该数据页信息中还可以包括与数据库中每页数据的单页数据标识对应的页码信息;也还可以包括与所述数据库中每页数据的单页数据标识对应的页内数据量。The device obtains the data page information of the database in advance before performing the step, which may be the device requesting the database in advance. The data page information includes at least each order in the database The page data identifier, the single page data identifier can uniquely identify the corresponding data page, for example, in the HBASE database, the marker is the starting identifier of the data page; the data page information can also include a single page with each page in the database. The page data identifies corresponding page number information; it may also include an amount of in-page data corresponding to a single page data identifier of each page of data in the database.
在获得数据页信息后,根据待查询数据信息中包含的内容,即可确定出与待查询数据信息对应的单页数据标识,所确定出的单页数据标识可能是一个,也可以是多个,多个单页数据标识对应的数据页在数据库中可能是连续的,也可能是不连续的。After obtaining the data page information, according to the content included in the data information to be queried, a single page data identifier corresponding to the data information to be queried may be determined, and the determined single page data identifier may be one or multiple The data pages corresponding to multiple single page data identifiers may be continuous or discontinuous in the database.
步骤103,向数据库请求与待查询数据信息对应的单页数据标识所对应的数据。Step 103: Request data corresponding to the single page data identifier corresponding to the data information to be queried to the database.
当确定出的单页数据标识是一个时,可以占用一个线程向数据库请求该单页数据标识所对应的数据,当确定出的单页数据标识是多个时,可以占用多个线程并行向数据库请求各单页数据标识对应的数据。When the determined single page data identifier is one, the thread may be required to request the data corresponding to the single page data identifier from the database, and when the determined single page data identifier is multiple, the thread may be occupied in parallel to the database. Request data corresponding to each single page data identifier.
步骤104,在所请求到的数据中查询与待查询数据信息对应的待查询数据。Step 104: Query the data to be queried corresponding to the data information to be queried in the requested data.
在请求到数据后,即可根据待查询数据信息查询到待查询数据。该待查询数据可能就是上步骤中请求到的数据,也可能是所请求到的数据中的部分数据。After requesting the data, the data to be queried can be queried according to the data information to be queried. The data to be queried may be the data requested in the previous step, or may be part of the data in the requested data.
本申请实施例通过利用数据库中的单页数据标识获得数据页信息,并依据该数据页信息可以直接获取数据库中的与待查询数据信息对应的某一页或某几页数据进行数据查询,该查询方式无需在数据库中逐页进行数据查询,简化了数据查询过程,提高了数据查询效率。The embodiment of the present application obtains the data page information by using the single page data identifier in the database, and according to the data page information, can directly obtain a page or a certain page of data corresponding to the data information to be queried in the database for data query, The query method does not need to perform data query page by page in the database, which simplifies the data query process and improves the data query efficiency.
在本申请的另一实施例中,如图2所示,获得数据库的数据页信息的方法可以包括以下步骤:In another embodiment of the present application, as shown in FIG. 2, the method for obtaining data page information of a database may include the following steps:
步骤201,向数据库发送数据页信息查询请求。Step 201: Send a data page information query request to the database.
该装置向数据库发送查询请求。数据库接收到该请求后,根据请求至少获得每页数据的单页数据标识,还可以根据请求内容获得与数据库中每页数据的单页数据标识对应的页码信息和/或页内数据量等,生成数据页信息,然 后将其返回至该装置。The device sends a query request to the database. After receiving the request, the database obtains at least a single page data identifier of each page of data according to the request, and may also obtain page number information and/or amount of data in the page corresponding to the single page data identifier of each page of data in the database according to the requested content. Generate data page information, then Then return it to the device.
步骤202,接收数据页信息,并将数据页信息加入内存队列,该数据页信息中至少包括数据库中每页数据的单页数据标识。Step 202: Receive data page information, and add data page information to a memory queue, where the data page information includes at least a single page data identifier of each page of data in the database.
该装置在接收到数据发送的数据页信息后,将其加入内存队列,以便于随时快速的调用。After receiving the data page information sent by the data, the device adds it to the memory queue so that it can be quickly called at any time.
通过获得该数据页信息,该装置可以简便快速的根据数据查询请求确定数据库中某一页或某几页数据进行数据查询,未简化数据查询过程,提高数据查询效率提供了保障。By obtaining the data page information, the device can quickly and easily determine a page or a certain number of pages in the database for data query according to the data query request, and does not simplify the data query process and improve the data query efficiency.
下面分别对不同应用场景下的数据查询方法进行说明。The following describes the data query methods in different application scenarios.
参照图3,示出了本申请的另一种数据查询方法实施例的步骤流程图,具体可以包括如下步骤:Referring to FIG. 3, a flow chart of steps of another data query method embodiment of the present application is shown, which may specifically include the following steps:
步骤301,接收数据查询请求,该数据查询请求中包含至少一个待查询数据的rowkey。Step 301: Receive a data query request, where the data query request includes at least one rowkey of the data to be queried.
本实施例的应用场景是根据数据的rowkey进行查询。The application scenario of this embodiment is to perform a query according to the rowkey of the data.
步骤302,根据预先获得的数据库的数据页信息,确定出数据库的所有单页数据标识。Step 302: Determine, according to the data page information of the database obtained in advance, all the single page data identifiers of the database.
该情况下,预先获得的数据库的数据页信息中可以只包含数据库中每页数据的单页数据标识。本实施例中由于要查询具体的某一数据,而不是某一指定的数据页,所以需要对数据库中所有的数据页进行查询,本步骤确定出的单页数据标识为数据库的所有单页数据标识。In this case, the data page information of the database obtained in advance may include only a single page data identifier of each page of data in the database. In this embodiment, since a specific data is to be queried, instead of a specified data page, all data pages in the database need to be queried, and the single page data identified in this step is identified as all single page data of the database. Logo.
步骤303,启用至少两个线程并行在内存队列中拉取所有不同的单页数据标识。In step 303, at least two threads are enabled to pull all the different single page data identifiers in the memory queue in parallel.
在本步骤中需要启用多个线程,多个线程并行执行,每个线程在内存队列中拉取一个单页数据标识,不同线程拉取的单页数据标识不同。In this step, multiple threads need to be enabled, and multiple threads execute in parallel. Each thread pulls a single page data identifier in the memory queue, and the single page data identifiers drawn by different threads are different.
步骤304,占用该至少两个线程并行向数据库请求所拉取的单页数据标识所对应的数据。Step 304: The at least two threads are occupied in parallel to request data corresponding to the pulled single page data identifier from the database.
上步骤中每个线程在拉取单页数据标识后,并行向数据库请求所拉取的单页数据标识所对应的数据。 In the above step, after each thread pulls the single page data identifier, the thread requests the data corresponding to the pulled single page data identifier in parallel.
步骤305,在所请求到的数据中查询与待查询数据的rowkey对应的待查询数据。Step 305: Query, in the requested data, the data to be queried corresponding to the rowkey of the data to be queried.
上步骤中每个线程在请求到所拉取的单页数据标识对应的数据后,并行在请求道的数据中查询步骤301中的rowkey对应的待查询数据。In the above step, each thread inquires the data corresponding to the extracted single page data identifier, and queries the data of the request path in parallel with the data to be queried corresponding to rowkey in step 301.
上述各线程并行执行,当一个线程查询结束时,该线程可以重复调用执行步骤303~305,直至拉取数据库中所有的单页数据标识。The above threads execute in parallel. When a thread query ends, the thread can repeatedly execute steps 303-305 until all the single page data identifiers in the database are pulled.
本实施例中并行调取各数据页进行数据查询的方式,相比较现有技术中依次逐页查询的方式,大大提高了数据查询效率。In this embodiment, the manner in which each data page is retrieved in parallel for data query is compared with the sequential page-by-page query in the prior art, which greatly improves the data query efficiency.
参照图4,示出了本申请的另一种数据查询方法实施例的步骤流程图,具体可以包括如下步骤:Referring to FIG. 4, a flow chart of steps of another embodiment of the data query method of the present application is shown, which may specifically include the following steps:
步骤401,接收数据查询请求,该数据查询请求中包含待查询数据在数据库中的起止页。Step 401: Receive a data query request, where the data query request includes a start and end page of the data to be queried in the database.
本实施例的应用场景是查询数据库中指定数据页起止页之间的数据。该起止页也可以是同一页,也即请求数据库中某一页数据。The application scenario of this embodiment is to query data between the start and end pages of a specified data page in the database. The start and end page can also be the same page, that is, requesting a page of data in the database.
步骤402,根据预先获得的数据库的数据页信息,确定出数据库中该起止页之间数据页的单页数据标识,该数据页信息中包括数据库中每页数据的单页数据标识及其对应的页码信息。Step 402: Determine, according to the data page information of the database obtained in advance, a single page data identifier of the data page between the start and end pages in the database, where the data page information includes a single page data identifier of each page of the database and corresponding Page number information.
在本步骤中,该装置可以根据数据库中每页数据的单页数据标识及其对应的页码信息,确定出该起止页之间的数据页的单页数据标识。In this step, the device may determine a single page data identifier of the data page between the start and end pages according to the single page data identifier of each page of data in the database and its corresponding page number information.
步骤403,启用至少两个线程并行在内存队列中拉取确定出的不同的单页数据标识。 Step 403, enabling at least two threads to pull the determined different single page data identifiers in the memory queue in parallel.
如果确定出的单页数据标识只有一页,则直接启用一个线程从内存队列中拉取该单页数据标识,并向数据库请求该单页数据标识对应的数据即可。If the determined single page data identifier has only one page, the thread is directly enabled to pull the single page data identifier from the memory queue, and the data corresponding to the single page data identifier is requested from the database.
本实施例中,当确定给出的单页数据标识有多个时,则启用至少两个线程分别在内存队列中拉取出不同的单页数据标识。In this embodiment, when it is determined that there are multiple single page data identifiers, at least two threads are enabled to respectively extract different single page data identifiers in the memory queue.
启用多个线程拉取单页数据标识的过程与前述实例中的步骤303类似。The process of enabling multiple threads to pull a single page data identification is similar to step 303 in the previous example.
步骤404,占用该至少两个线程并行向数据库请求所拉取的单页数据标识所对应的数据。 Step 404, occupying the at least two threads to request data corresponding to the extracted single page data identifier in parallel to the database.
该过程与前述实施例中的步骤304类似,此处不再赘述。This process is similar to step 304 in the foregoing embodiment, and details are not described herein again.
本实施例中,步骤404所请求到的数据即为步骤401中所请求的数据库起止页之间的数据。In this embodiment, the data requested in step 404 is the data between the start and end pages of the database requested in step 401.
本实施例通过利用单页数据标识来向数据库请求对应数据,简化了数据库的操作过程,并且可以通过多个线程同时获得数据,提高了数据查询效率。In this embodiment, the single-page data identifier is used to request corresponding data from the database, which simplifies the operation process of the database, and can obtain data simultaneously through multiple threads, thereby improving data query efficiency.
参照图5,示出了本申请的另一种数据查询方法实施例的步骤流程图,具体可以包括如下步骤:Referring to FIG. 5, a flow chart of steps of another data query method embodiment of the present application is shown, which may specifically include the following steps:
步骤501,接收数据查询请求,该数据查询请求中包含待查询数据在数据库中的起始页及数据量。Step 501: Receive a data query request, where the data query request includes a start page and a data amount of the data to be queried in the database.
本实施例中的应用场景是,该装置需要查询自起始页之后的达到该要求数据量的数据。The application scenario in this embodiment is that the device needs to query data that reaches the required data amount after the start page.
步骤502,根据预先获得的数据库的数据页信息,确定出数据库中与该起始页与数据量对应的单页数据标识,该数据页信息中包括数据库中每页数据的单页数据标识及其对应的页码信息及页内数据量。Step 502: Determine, according to the data page information of the database obtained in advance, a single page data identifier corresponding to the start page and the data amount in the database, where the data page information includes a single page data identifier of each page of the database and Corresponding page number information and amount of data in the page.
本步骤中,根据单页数据标识对应的页码信息确定起始页对应的单页数据标识,然后根据单页数据标识对应的页内数据量及请求中包含的数据量推算起始页之后的数据页,并确定出这些数据页对应的单页数据标识。有可能请求中包含的数据量正好对应确定出的数据页内的所有数据,也有可能请求中包含的数据量小于确定出的数据页内的所有数据,例如在确定出的最后一数据页中只需查询其中的部分数据。In this step, the single page data identifier corresponding to the start page is determined according to the page number information corresponding to the single page data identifier, and then the data after the start page is estimated according to the amount of data in the page corresponding to the single page data identifier and the data amount included in the request. Pages, and determine the single page data identifier corresponding to these data pages. It is possible that the amount of data contained in the request corresponds to all the data in the determined data page, and it is also possible that the amount of data contained in the request is smaller than all the data in the determined data page, for example, in the last data page determined. Need to query some of the data.
步骤503,启用至少两个线程并行在内存队列中拉取确定出的不同的单页数据标识。 Step 503, enabling at least two threads to pull the determined different single page data identifiers in the memory queue in parallel.
步骤504,占用该至少两个线程并行向数据库请求所拉取的单页数据标识所对应的数据。 Step 504, occupying the at least two threads to request data corresponding to the pulled single page data identifier in parallel to the database.
在确定出单页数据标识后,步骤503~504与前述实施例中的步骤403~404类似,此处不再赘述。After the single-page data identifier is determined, the steps 503-504 are similar to the steps 403-404 in the foregoing embodiment, and details are not described herein again.
步骤505,在所请求到的数据中查询与待查询数据在数据库中的起始页及数据量对应的待查询数据。 Step 505: Query, in the requested data, the data to be queried corresponding to the start page and the data amount of the data to be queried in the database.
当请求中包含的数据量正好对应确定出的数据页内的所有数据时,步骤504请求到的数据即为步骤501中所请求的数据。当请求中包含的数据量小于确定出的数据页内的所有数据时,例如在确定出的最后一数据页中只需查询其中的部分数据,则可以根据请求中的数据量查询获得待查询数据。When the amount of data contained in the request corresponds to all the data in the determined data page, the data requested in step 504 is the data requested in step 501. When the amount of data included in the request is less than all the data in the determined data page, for example, only part of the data in the last data page determined, the data to be queried can be obtained according to the data volume in the request. .
在按照上述实施例获得待查询数据后,可以进一步根据获得的数据进行数据处理,例如进行数据比对,数据备份等等。After the data to be queried is obtained according to the above embodiment, the data processing may be further performed according to the obtained data, for example, data comparison, data backup, and the like.
上述方法实施例可以应用于数据库为key值无规律的半结构化存储数据库,如HBASE,其中单页数据标识为marker。The foregoing method embodiment can be applied to a semi-structured storage database whose database has an irregular key value, such as HBASE, wherein the single page data identifier is a marker.
需要说明的是,对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请实施例并不受所描述的动作顺序的限制,因为依据本申请实施例,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本申请实施例所必须的。It should be noted that, for the method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should understand that the embodiments of the present application are not limited by the described action sequence, because In accordance with embodiments of the present application, certain steps may be performed in other sequences or concurrently. In the following, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required in the embodiments of the present application.
参照图6,示出了本申请一种数据查询装置实施例的结构框图,具体可以包括如下单元:Referring to FIG. 6, a structural block diagram of an embodiment of a data query apparatus according to the present application is shown, which may specifically include the following units:
请求接收单元601,被配置为接收数据查询请求,所述数据查询请求中包含待查询数据信息。The request receiving unit 601 is configured to receive a data query request, where the data query request includes data information to be queried.
确定单元602,被配置为根据预先获得的数据库的数据页信息,确定出与所述待查询数据信息对应的单页数据标识;所述数据页信息中至少包括所述数据库中的各单页数据标识。The determining unit 602 is configured to determine, according to the data page information of the database obtained in advance, a single page data identifier corresponding to the to-be-queried data information; the data page information includes at least each single page data in the database Logo.
数据请求单元603,被配置为向所述数据库请求与所述待查询数据信息对应的单页数据标识所对应的数据。The data requesting unit 603 is configured to request, from the database, data corresponding to the single page data identifier corresponding to the to-be-queried data information.
查询单元604,被配置为在所请求到的数据中查询与所述待查询数据信息对应的待查询数据。The querying unit 604 is configured to query, in the requested data, the data to be queried corresponding to the data information to be queried.
该装置通过上述单元利用数据库中的单页数据标识获得数据页信息,并依据该数据页信息可以直接获取数据库中的与待查询数据信息对应的某一 页或某几页数据进行数据查询,该装置的查询方式无需在数据库中逐页进行数据查询,简化了数据查询过程,提高了数据查询效率。The device obtains the data page information by using the single page data identifier in the database through the above unit, and according to the data page information, directly obtains a certain one of the database corresponding to the data information to be queried. The page or a few pages of data for data query, the device query mode does not need to query the data page by page in the database, which simplifies the data query process and improves the data query efficiency.
在另一实施例中,如图7所示,该装置还可以包括:In another embodiment, as shown in FIG. 7, the device may further include:
信息获取单元701,被配置为获得所述数据库的数据页信息。The information acquisition unit 701 is configured to obtain data page information of the database.
该信息获取单元701,如图8所示,可以进一步包括:The information obtaining unit 701, as shown in FIG. 8, may further include:
请求子单元801,被配置为向所述数据库发送数据页信息查询请求。The request subunit 801 is configured to send a data page information query request to the database.
存储子单元802,被配置为接收数据页信息并将其加入内存队列,所述数据页信息中至少包括所述数据库中每页数据的单页数据标识。The storage sub-unit 802 is configured to receive the data page information and add it to the memory queue, the data page information including at least a single-page data identifier of each page of the database.
在另一实施例中,待查询数据信息可以包括至少一个待查询数据的rowkey。In another embodiment, the to-be-queried data information may include at least one rowkey of the data to be queried.
在另一实施例中,待查询数据信息还可以包括待查询数据在数据库中的起止页;所述数据页信息中还包括与所述数据库中每页数据的单页数据标识对应的页码信息。In another embodiment, the to-be-queried data information may further include a start and stop page of the data to be queried in the database; the data page information further includes page code information corresponding to the single-page data identifier of each page of the database.
在另一实施例中,待查询数据信息还可以包括待查询数据在数据库中的起始页及数据量;所述数据页信息中还包括与所述数据库中每页数据的单页数据标识对应的页码信息及页内数据量。In another embodiment, the to-be-queried data information may further include a start page and a data amount of the data to be queried in the database; the data page information further includes a single-page data identifier corresponding to each page of the database. Page number information and the amount of data in the page.
在另一实施例中,当确定单元602确定出的与所述待查询数据信息对应的单页数据标识至少为两个时,如图9所示,数据请求单元603可以包括:In another embodiment, when the determining unit 602 determines that the single page data identifier corresponding to the to-be-queried data information is at least two, as shown in FIG. 9, the data requesting unit 603 may include:
拉取子单元901,被配置为启用至少两个线程并行在所述内存队列中拉取与所述待查询数据信息对应的不同的单页数据标识。The pull subunit 901 is configured to enable at least two threads to pull different single page data identifiers corresponding to the to-be-queried data information in the memory queue in parallel.
数据请求子单元902,被配置为占用所述至少两个线程并行向所述数据库请求所拉取的单页数据标识所对应的数据。The data requesting subunit 902 is configured to occupy the data corresponding to the at least two threads in parallel requesting the extracted single page data identifier from the database.
上述数据库可以为key值无规律的半结构化存储数据库,如HBASE,其中单页数据标识为marker。The above database may be a semi-structured storage database with an irregular key value, such as HBASE, wherein the single page data identifier is a marker.
本申请实施例还提供了一种电子设备,包括存储器、收发器和处理器。The embodiment of the present application further provides an electronic device, including a memory, a transceiver, and a processor.
处理器与存储器、收发器通过总线相互连接;总线可以是ISA总线、PCI总线或EISA总线等。所述总线可以分为地址总线、数据总线、控制总线等。The processor and the memory and the transceiver are connected to each other through a bus; the bus may be an ISA bus, a PCI bus or an EISA bus. The bus can be divided into an address bus, a data bus, a control bus, and the like.
其中,存储器用于存储一段程序,具体地,程序可以包括程序代码,所 述程序代码包括计算机操作指令。存储器可能包含高速RAM存储器,也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。Wherein, the memory is used to store a program, in particular, the program may include program code, The program code includes computer operating instructions. The memory may include a high speed RAM memory and may also include a non-volatile memory such as at least one disk memory.
收发器用于接收数据查询请求,所述数据查询请求中包含待查询数据信息;向所述数据库请求与所述待查询数据信息对应的单页数据标识所对应的数据。The transceiver is configured to receive a data query request, where the data query request includes data to be queried; and request, by the database, data corresponding to the single page data identifier corresponding to the to-be-queried data information.
处理器用于读取存储器中的程序代码,执行以下步骤:The processor is used to read the program code in the memory and perform the following steps:
根据预先获得的数据库的数据页信息,确定出与所述待查询数据信息对应的单页数据标识;所述数据页信息中至少包括所述数据库中的各单页数据标识;Determining, according to the data page information of the database obtained in advance, a single page data identifier corresponding to the to-be-queried data information; the data page information includes at least each single page data identifier in the database;
在所请求到的数据中查询与所述待查询数据信息对应的待查询数据。The data to be queried corresponding to the data to be queried is queried in the requested data.
对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。The various embodiments in the present specification are described in a progressive manner, and each embodiment focuses on differences from other embodiments, and the same similar parts between the various embodiments can be referred to each other.
本领域内的技术人员应明白,本申请实施例的实施例可提供为方法、装置、或计算机程序产品。因此,本申请实施例可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请实施例可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the embodiments of the present application can be provided as a method, apparatus, or computer program product. Therefore, the embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Moreover, embodiments of the present application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
在一个典型的配置中,所述计算机设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。计算机可读介质包括永久性和非永久性、可移动和非可移动媒体 可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括非持续性的电脑可读媒体(transitory media),如调制的数据信号和载波。In a typical configuration, the computer device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory. The memory may include non-persistent memory, random access memory (RAM), and/or non-volatile memory in a computer readable medium, such as read only memory (ROM) or flash memory. Memory is an example of a computer readable medium. Computer readable media includes both permanent and non-permanent, removable and non-removable media Information storage can be accomplished by any method or technique. The information can be computer readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory. (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or other memory technology, compact disk read only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, Magnetic tape cartridges, magnetic tape storage or other magnetic storage devices or any other non-transportable media can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include non-persistent computer readable media, such as modulated data signals and carrier waves.
本申请实施例是参照根据本申请实施例的方法、终端设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理终端设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理终端设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。Embodiments of the present application are described with reference to flowcharts and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the present application. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing terminal device to produce a machine such that instructions are executed by a processor of a computer or other programmable data processing terminal device Means are provided for implementing the functions specified in one or more of the flow or in one or more blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理终端设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing terminal device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The instruction device implements the functions specified in one or more blocks of the flowchart or in a flow or block of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理终端设备上,使得在计算机或其他可编程终端设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程终端设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device such that a series of operational steps are performed on the computer or other programmable terminal device to produce computer-implemented processing, such that the computer or other programmable terminal device The instructions executed above provide steps for implementing the functions specified in one or more blocks of the flowchart or in a block or blocks of the flowchart.
尽管已描述了本申请实施例的优选实施例,但本领域内的技术人员一旦 得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本申请实施例范围的所有变更和修改。Although a preferred embodiment of the embodiments of the present application has been described, one of ordinary skill in the art once Additional changes and modifications to these embodiments can be made upon the basic inventive concept. Therefore, the appended claims are intended to be interpreted as including all the modifications and the modifications
最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者终端设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者终端设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者终端设备中还存在另外的相同要素。Finally, it should also be noted that in this context, relational terms such as first and second are used merely to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these entities. There is any such actual relationship or order between operations. Furthermore, the terms "comprises" or "comprising" or "comprising" or any other variations are intended to encompass a non-exclusive inclusion, such that a process, method, article, or terminal device that includes a plurality of elements includes not only those elements but also Other elements that are included, or include elements inherent to such a process, method, article, or terminal device. An element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or terminal device that comprises the element, without further limitation.
以上对本申请所提供的一种数据查询方法和一种数据查询装置,进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。 The above is a detailed description of a data query method and a data query device provided by the present application. The principles and implementation manners of the present application are described in the specific examples. The description of the above embodiments is only for help. The method of the present application and its core idea are understood; at the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the specific implementation manner and the scope of application. It should be understood that the limitations of the application.

Claims (10)

  1. 一种数据查询方法,其特征在于,包括:A data query method, comprising:
    接收数据查询请求,所述数据查询请求中包含待查询数据信息;Receiving a data query request, where the data query request includes data information to be queried;
    根据预先获得的数据库的数据页信息,确定出与所述待查询数据信息对应的单页数据标识;所述数据页信息中至少包括所述数据库中的各单页数据标识;Determining, according to the data page information of the database obtained in advance, a single page data identifier corresponding to the to-be-queried data information; the data page information includes at least each single page data identifier in the database;
    向所述数据库请求与所述待查询数据信息对应的单页数据标识所对应的数据;Requesting, by the database, data corresponding to the single page data identifier corresponding to the to-be-queried data information;
    在所请求到的数据中查询与所述待查询数据信息对应的待查询数据。The data to be queried corresponding to the data to be queried is queried in the requested data.
  2. 根据权利要求1所述的方法,其特征在于,获得所述数据库的数据页信息的方法,包括:The method of claim 1, wherein the method of obtaining data page information of the database comprises:
    向所述数据库发送数据页信息查询请求;Sending a data page information query request to the database;
    接收数据页信息并将其加入内存队列,所述数据页信息中至少包括所述数据库中每页数据的单页数据标识。The data page information is received and added to the memory queue, the data page information including at least a single page data identifier of each page of the database.
  3. 根据权利要求2所述的方法,其特征在于,所述待查询数据信息包括至少一个待查询数据的rowkey。The method according to claim 2, wherein the data to be queried includes at least one rowkey of data to be queried.
  4. 根据权利要求2所述的方法,其特征在于,所述待查询数据信息包括待查询数据在数据库中的起止页;所述数据页信息中还包括与所述数据库中每页数据的单页数据标识对应的页码信息。The method according to claim 2, wherein the data to be queried includes a start and stop page of the data to be queried in the database; and the data page information further includes a single page of data with each page of the database. Identifies the corresponding page number information.
  5. 根据权利要求2所述的方法,其特征在于,所述待查询数据信息包括待查询数据在数据库中的起始页及数据量;所述数据页信息中还包括与所述数据库中每页数据的单页数据标识对应的页码信息及页内数据量。The method according to claim 2, wherein the data to be queried includes a start page and a data amount of the data to be queried in the database; and the data page information further includes data of each page in the database. The single page data identifies the corresponding page number information and the amount of data in the page.
  6. 根据权利要求2至5中任意一项所述的方法,其特征在于,当所确定出的与所述待查询数据信息对应的单页数据标识至少为两个时,所述向所述数据库请求与所述待查询数据信息对应的单页数据标识所对应的数据,包括:The method according to any one of claims 2 to 5, wherein when the determined single page data identifier corresponding to the to-be-queried data information is at least two, the requesting to the database The data corresponding to the single page data identifier corresponding to the data information to be queried includes:
    启用至少两个线程并行在所述内存队列中拉取与所述待查询数据信息 对应的不同的单页数据标识;Enabling at least two threads to pull data information to be queried in the memory queue in parallel Corresponding different single page data identifiers;
    占用所述至少两个线程并行向所述数据库请求所拉取的单页数据标识所对应的数据。Occupying the at least two threads to request data corresponding to the pulled single page data identifier to the database in parallel.
  7. 根据权利要求1至5中任意一项所述的方法,其特征在于,所述数据库为key值无规律的半结构化存储数据库。The method according to any one of claims 1 to 5, wherein the database is a semi-structured storage database with an irregular key value.
  8. 一种数据查询装置,其特征在于,包括:A data query device, comprising:
    请求接收单元,被配置为接收数据查询请求,所述数据查询请求中包含待查询数据信息;a request receiving unit, configured to receive a data query request, where the data query request includes data information to be queried;
    确定单元,被配置为根据预先获得的数据库的数据页信息,确定出与所述待查询数据信息对应的单页数据标识;所述数据页信息中至少包括所述数据库中的各单页数据标识;a determining unit, configured to determine, according to the data page information of the database obtained in advance, a single page data identifier corresponding to the to-be-queried data information; the data page information includes at least each single page data identifier in the database ;
    数据请求单元,被配置为向所述数据库请求与所述待查询数据信息对应的单页数据标识所对应的数据;a data requesting unit, configured to request, from the database, data corresponding to the single-page data identifier corresponding to the to-be-queried data information;
    查询单元,被配置为在所请求到的数据中查询与所述待查询数据信息对应的待查询数据。The query unit is configured to query, in the requested data, the data to be queried corresponding to the data information to be queried.
  9. 根据权利要求8所述的装置,其特征在于,所述装置还包括:The device according to claim 8, wherein the device further comprises:
    信息获取单元,被配置为获得所述数据库的数据页信息;An information obtaining unit configured to obtain data page information of the database;
    所述信息获取单元包括:The information acquiring unit includes:
    请求子单元,被配置为向所述数据库发送数据页信息查询请求;a request subunit configured to send a data page information query request to the database;
    存储子单元,被配置为接收数据页信息并将其加入内存队列,所述数据页信息中至少包括所述数据库中每页数据的单页数据标识。The storage subunit is configured to receive the data page information and add it to the memory queue, the data page information including at least a single page data identifier of each page of the database.
  10. 根据权利要求8或9所述的装置,其特征在于,当所述确定单元确定出的与所述待查询数据信息对应的单页数据标识至少为两个时,所述数据请求单元包括:The apparatus according to claim 8 or 9, wherein when the determining unit determines at least two single page data identifiers corresponding to the to-be-queried data information, the data requesting unit includes:
    拉取子单元,被配置为启用至少两个线程并行在所述内存队列中拉取与所述待查询数据信息对应的不同的单页数据标识;Pulling a subunit, configured to enable at least two threads to pull different single page data identifiers corresponding to the to-be-queried data information in the memory queue in parallel;
    数据请求子单元,被配置为占用所述至少两个线程并行向所述数据库请求所拉取的单页数据标识所对应的数据。 The data requesting subunit is configured to occupy the data corresponding to the at least two threads in parallel requesting the pulled single page data identifier from the database.
PCT/CN2016/086870 2015-07-03 2016-06-23 Data query method and device WO2017005094A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510388093.4 2015-07-03
CN201510388093.4A CN106326309B (en) 2015-07-03 2015-07-03 Data query method and device

Publications (1)

Publication Number Publication Date
WO2017005094A1 true WO2017005094A1 (en) 2017-01-12

Family

ID=57684666

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/086870 WO2017005094A1 (en) 2015-07-03 2016-06-23 Data query method and device

Country Status (2)

Country Link
CN (1) CN106326309B (en)
WO (1) WO2017005094A1 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109408532A (en) * 2018-09-26 2019-03-01 平安科技(深圳)有限公司 Data capture method, device, computer equipment and storage medium
CN110765132A (en) * 2019-10-22 2020-02-07 北京思特奇信息技术股份有限公司 Data storage and retrieval method and device based on HBase
CN111459949A (en) * 2019-01-18 2020-07-28 阿里巴巴集团控股有限公司 Data processing method, device and equipment for database and index updating method
CN112100245A (en) * 2020-09-18 2020-12-18 咪咕文化科技有限公司 Data export method and device, electronic equipment and storage medium
CN112182040A (en) * 2020-09-30 2021-01-05 深圳前海微众银行股份有限公司 Data query method, device, equipment and storage medium
CN112866339A (en) * 2020-12-30 2021-05-28 金蝶软件(中国)有限公司 Data transmission method and device, computer equipment and storage medium
CN112100245B (en) * 2020-09-18 2024-05-31 咪咕文化科技有限公司 Data export method, device, electronic equipment and storage medium

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110019213A (en) * 2017-12-04 2019-07-16 北京京东尚科信息技术有限公司 Data managing method, device, electronic equipment and storage medium
CN110019274B (en) * 2017-12-29 2023-09-26 阿里巴巴集团控股有限公司 Database system and method and device for querying database
CN109656980A (en) * 2018-12-27 2019-04-19 Oppo(重庆)智能科技有限公司 Data processing method, electronic equipment, device and readable storage medium storing program for executing
CN110032604B (en) * 2019-02-02 2021-12-07 北京奥星贝斯科技有限公司 Data storage device, translation device and database access method
CN111427885B (en) * 2020-03-03 2023-06-09 中科驭数(北京)科技有限公司 Database management method and device based on lookup table

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7158996B2 (en) * 2003-01-27 2007-01-02 International Business Machines Corporation Method, system, and program for managing database operations with respect to a database table
US7461060B2 (en) * 2005-10-04 2008-12-02 International Business Machines Corporation Generalized partition pruning in a database system
CN101876983A (en) * 2009-04-30 2010-11-03 国际商业机器公司 Method for partitioning database and system thereof
CN102725753A (en) * 2011-11-28 2012-10-10 华为技术有限公司 Method and apparatus for optimizing data access, method and apparatus for optimizing data storage
CN102799628A (en) * 2012-06-21 2012-11-28 新浪网技术(中国)有限公司 Method and device for data partitioning in key-value database
CN103593436A (en) * 2013-11-12 2014-02-19 华为技术有限公司 File merging method and device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102375852A (en) * 2010-08-24 2012-03-14 中国移动通信集团公司 Method for building data index as well as method and system using data index for inquiring data
CN103514214B (en) * 2012-06-28 2018-09-21 深圳中兴网信科技有限公司 Data query method and device
CN104182405B (en) * 2013-05-22 2017-05-24 阿里巴巴集团控股有限公司 Method and device for connection query
CN103488720A (en) * 2013-09-12 2014-01-01 金蝶软件(中国)有限公司 Method, system and client for viewing data
CN103617232B (en) * 2013-11-26 2018-03-30 北京京东尚科信息技术有限公司 A kind of paging query method for HBase table
CN104750681B (en) * 2013-12-25 2018-02-23 中国移动通信集团辽宁有限公司 A kind of processing method and processing device of mass data
CN104102710A (en) * 2014-07-15 2014-10-15 浪潮(北京)电子信息产业有限公司 Massive data query method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7158996B2 (en) * 2003-01-27 2007-01-02 International Business Machines Corporation Method, system, and program for managing database operations with respect to a database table
US7461060B2 (en) * 2005-10-04 2008-12-02 International Business Machines Corporation Generalized partition pruning in a database system
CN101876983A (en) * 2009-04-30 2010-11-03 国际商业机器公司 Method for partitioning database and system thereof
CN102725753A (en) * 2011-11-28 2012-10-10 华为技术有限公司 Method and apparatus for optimizing data access, method and apparatus for optimizing data storage
CN102799628A (en) * 2012-06-21 2012-11-28 新浪网技术(中国)有限公司 Method and device for data partitioning in key-value database
CN103593436A (en) * 2013-11-12 2014-02-19 华为技术有限公司 File merging method and device

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109408532A (en) * 2018-09-26 2019-03-01 平安科技(深圳)有限公司 Data capture method, device, computer equipment and storage medium
CN109408532B (en) * 2018-09-26 2023-12-19 平安科技(深圳)有限公司 Data acquisition method, device, computer equipment and storage medium
CN111459949A (en) * 2019-01-18 2020-07-28 阿里巴巴集团控股有限公司 Data processing method, device and equipment for database and index updating method
CN111459949B (en) * 2019-01-18 2023-12-19 阿里巴巴集团控股有限公司 Data processing method, device and equipment for database and index updating method
CN110765132A (en) * 2019-10-22 2020-02-07 北京思特奇信息技术股份有限公司 Data storage and retrieval method and device based on HBase
CN112100245A (en) * 2020-09-18 2020-12-18 咪咕文化科技有限公司 Data export method and device, electronic equipment and storage medium
CN112100245B (en) * 2020-09-18 2024-05-31 咪咕文化科技有限公司 Data export method, device, electronic equipment and storage medium
CN112182040A (en) * 2020-09-30 2021-01-05 深圳前海微众银行股份有限公司 Data query method, device, equipment and storage medium
CN112866339A (en) * 2020-12-30 2021-05-28 金蝶软件(中国)有限公司 Data transmission method and device, computer equipment and storage medium
CN112866339B (en) * 2020-12-30 2022-12-06 金蝶软件(中国)有限公司 Data transmission method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN106326309B (en) 2020-02-21
CN106326309A (en) 2017-01-11

Similar Documents

Publication Publication Date Title
WO2017005094A1 (en) Data query method and device
RU2729960C1 (en) Method and device for storing data and request based on blockchain
WO2018214835A1 (en) Block chain service acceptance and consensus method and device
KR101994021B1 (en) File manipulation method and apparatus
EP3158480B1 (en) Data query method and apparatus
TWI613555B (en) Search method and device
US10748220B2 (en) Account processing method and apparatus
WO2018040722A1 (en) Table data query method and device
JP2015531941A5 (en)
TW201220197A (en) for improving the safety and reliability of data storage in a virtual machine based on cloud calculation and distributed storage environment
WO2017016423A1 (en) Real-time new data update method and device
US20170060878A1 (en) Field Extension in Database System
CN111159219B (en) Data management method, device, server and storage medium
WO2017161540A1 (en) Data query method, data object storage method and data system
WO2019085601A1 (en) Task execution method and apparatus
CN107423037B (en) Application program interface positioning method and device
WO2019076102A1 (en) Data rollback method and system, device, and computer readable storage medium
TW201702870A (en) Method and system for allocating resources for virtual hosts
CN104572809A (en) Distributive relational database free expansion method
CN111723161A (en) Data processing method, device and equipment
CN108153777B (en) Method and device for acquiring data access information
JP2015212961A (en) Method, system and computer readable medium for creating file variants
CN108491457A (en) A kind of method and apparatus for synchronizing public cloud resource
JP7440007B2 (en) Systems, methods and apparatus for querying databases
CN110019357B (en) Database query script generation method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16820745

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16820745

Country of ref document: EP

Kind code of ref document: A1