WO2021179782A1 - Method, device and apparatus for improving execution efficiency of database appliance, and medium - Google Patents

Method, device and apparatus for improving execution efficiency of database appliance, and medium Download PDF

Info

Publication number
WO2021179782A1
WO2021179782A1 PCT/CN2021/070568 CN2021070568W WO2021179782A1 WO 2021179782 A1 WO2021179782 A1 WO 2021179782A1 CN 2021070568 W CN2021070568 W CN 2021070568W WO 2021179782 A1 WO2021179782 A1 WO 2021179782A1
Authority
WO
WIPO (PCT)
Prior art keywords
storage unit
interval
memory
data
maximum
Prior art date
Application number
PCT/CN2021/070568
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 WO2021179782A1 publication Critical patent/WO2021179782A1/en

Links

Images

Classifications

    • 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/245Query processing
    • G06F16/2453Query optimisation
    • 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/22Indexing; Data structures therefor; Storage structures
    • G06F16/2228Indexing structures
    • G06F16/2255Hash tables
    • 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/2433Query languages
    • 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/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor

Definitions

  • the present invention relates to the computer field, and more specifically, to a method, equipment, device and medium for improving the execution efficiency of a database integrated machine.
  • indexing methods There are two existing indexing methods. One is to store nodes without indexes and compute node B-tree indexes. As shown in Figure 1, the top level of the index is the root, which includes entries pointing to the next level in the index, and the next level is the branch block. , It points to the next-level block in the next level of the index. The bottom level is the leaf node, which contains index entries that point to the table row. The leaf block is bidirectionally associated, and the key value is scanned in ascending or descending order. Index; the second is the storage node has no index, and the node bitmap index is calculated.
  • bitmap index can also be organized in the form of B-tree, but the leaf node will store the bitmap of each key value, not the row ID (identification) list.
  • Each bit in the bitmap corresponds to a possible row ID. If this bit is set, it means that the row with the corresponding row ID contains the key value.
  • indexes are built on the computing nodes, and the computing pressure of the computing nodes is not shared; creating and maintaining indexes require time costs, and this cost increases as the amount of data increases; creating indexes And maintaining indexes requires space costs.
  • Each index occupies the physical storage space of the database. The larger the amount of data, the larger the occupied space (the data table occupies the data space of the database); it will reduce the efficiency of adding, deleting, and modifying tables. Because the index needs to be dynamically maintained each time the index is added, deleted, and changed, the time becomes longer.
  • the purpose of the embodiments of the present invention is to propose a method, equipment, device and medium for improving the execution efficiency of a database all-in-one machine, establish an invented intelligent index on a storage node, and assist the computing node SQL (Structured Query Language, structure) through the intelligent index Query language) processing, reduce the computing load of the computing node, and improve the overall performance of the all-in-one machine.
  • SQL Structured Query Language
  • one aspect of the embodiments of the present invention provides a method for improving the execution efficiency of a database integrated machine, which includes the following steps:
  • the information of the storage unit corresponding to the found interval and the maximum and minimum interval of its stored data are stored in the memory.
  • filtering out the maximum value and minimum value of the stored data in each storage unit in the storage node, and storing the maximum value and minimum value as interval endpoints includes:
  • searching in the memory of the storage node for the corresponding maximum and minimum interval of the storage unit where the data is located includes:
  • the method further includes:
  • the maximum and minimum values of the stored data of the storage unit are re-screened, and the stored maximum and minimum interval is updated according to the screening result.
  • storing the information of the storage unit corresponding to the found interval and the maximum and minimum interval of its stored data in the memory includes:
  • the information of the storage unit and the maximum and minimum interval of the stored data and the correspondence relationship between the maximum and minimum interval and the information of the storage unit are stored in the memory in the form of a hash table.
  • storing the information of the storage unit corresponding to the found interval and the maximum and minimum interval of its stored data in the memory based on the number of queries includes:
  • the interval search is further performed in the storage unit, and in response to the found corresponding storage unit in the storage node
  • the number of queries recorded in the database is greater than the number of queries of the storage unit that has the least number of queries recorded in the database among the storage units stored in the memory, and the corresponding storage unit information found and its interval are compared The value replaces the storage unit with the least number of queries stored in the memory.
  • the method is applicable to a K-DB database all-in-one machine.
  • Another aspect of the embodiments of the present invention provides a device for improving the execution efficiency of a database integrated machine, including:
  • the data calculation module is configured to filter out the maximum value and the minimum value of the stored data in each storage unit in the storage node, and store the maximum value and the minimum value as the interval endpoints;
  • a memory response module configured to, in response to a user's data query, search for the corresponding maximum and minimum interval of the storage unit where the data is located in the memory of the storage node;
  • the storage unit response module is configured to, in response to failing to find the corresponding interval in the memory, to further search for the interval in each storage unit in turn, and to further inquire the storage unit corresponding to the found interval data;
  • the memory data update module is configured to save the information of the storage unit corresponding to the found interval and the maximum and minimum interval of its stored data in the memory based on the number of queries.
  • Another aspect of the embodiments of the present invention provides a device for improving the execution efficiency of a database integrated machine, including:
  • At least one processor At least one processor
  • a memory stores a program code that can be run by the processor, and the program code implements the method as described above when the program code is run by the processor.
  • Another aspect of the embodiments of the present invention provides a computer medium including program code executable by a processor, and the program code implements the above-mentioned method when being executed by the processor.
  • the present invention has the following beneficial technical effects: a method, equipment, device, and medium for improving the execution efficiency of a database integrated machine provided by the embodiments of the present invention comprehensively improve the processing of the OLAP (Online Analytical Processing) type business of the integrated integrated machine Efficiency: Reduce the CPU (central processing unit) load of the computing node and free up computing resources; put the index in the memory to save hard disk storage space and improve retrieval efficiency; while the overall performance is improved, the overall cost is reduced.
  • OLAP Online Analytical Processing
  • Figure 1 is a schematic diagram of a B-tree index in the prior art
  • FIG. 2 is a schematic diagram of bitmap index in the prior art
  • FIG. 3 is a flowchart of a method for improving the execution efficiency of a database integrated machine according to the present invention
  • FIG. 4 is a schematic diagram of the intelligent storage index established according to the method of the present invention in the structure of a database integrated machine
  • Figure 5 is a schematic diagram of the storage indexing technology of the method of the present invention.
  • FIG. 6 is a schematic diagram of the hardware structure of a device for improving the execution efficiency of a database integrated machine according to the present invention.
  • Fig. 7 is a schematic diagram of a device for improving the execution efficiency of a database integrated machine according to the present invention.
  • one aspect of the embodiments of the present invention proposes a method for improving the execution efficiency of a database integrated machine. As shown in FIG. 3, the method includes the following steps:
  • Step S301 Filter out the maximum value and the minimum value of the stored data in each storage unit in the storage node, and store the maximum value and the minimum value as the interval endpoints;
  • Step S302 In response to the user's data query, search for the corresponding maximum and minimum interval of the storage unit where the data is located in the memory of the storage node;
  • Step S303 In response to not finding the corresponding interval in the memory, further searching for intervals in each storage unit in turn, and further querying the data in the storage unit corresponding to the found interval;
  • Step S304 Save the information of the storage unit corresponding to the found interval and the maximum and minimum interval of its stored data in the memory based on the number of queries.
  • the storage software installs several local disks on a server, which is called a storage server.
  • the storage servers are structurally independent. One of the capacity growth will not affect the other servers. Each storage server is regarded as a whole. This mutually independent horizontal storage structure enables large-capacity expansion of data and guarantees large data volume.
  • the business data is stored in the integrated database machine using data blocks as a unit (ie storage unit).
  • the intelligent database index according to the present invention is different from the traditional B-tree index. Data blocks are arranged, the peaks and valleys after the arrangement are taken out, and then the peaks and valleys are stored in the memory of the storage node.
  • the subsequent SQL (Structured Query Language) request first judges the required data through the intelligent index in those data blocks Then, the relevant data block is transferred from the storage node to the computing node through the network for subsequent transaction requests and access. This method not only reduces the storage space, but also improves the query efficiency.
  • the peak and valley values are taken from each storage block in the database table and stored in the memory of the storage node, which are (4, 9), (1, 6), ( 3, 7), if a SQL query statement wants to find a value of C3 column equal to 2, the database will only scan in the second interval when doing row and column filtering, and any storage interval that cannot contain matching records will be skipped However, in most cases, this will drastically reduce the amount of I/O (input/output) that needs to be performed.
  • filtering out the maximum value and minimum value of the stored data in each storage unit in the storage node, and storing the maximum value and minimum value as the interval endpoints includes: storing each of the storage nodes A hash calculation is performed on each data in the storage unit to filter out the maximum value and the minimum value after the hash calculation in each storage unit, and the maximum value and the minimum value are stored as interval endpoints.
  • searching in the memory of the storage node for the corresponding maximum and minimum interval of the storage unit where the data is located includes: performing the query on the data Hash calculation, and search for the corresponding maximum and minimum interval in the memory of the storage node for the data after the hash calculation.
  • the method further includes: in response to a data update of the storage unit in the storage node, re-screening the maximum and minimum values of the data stored in the storage unit, and updating the stored data according to the screening result.
  • the maximum and minimum interval in response to a data update of the storage unit in the storage node, re-screening the maximum and minimum values of the data stored in the storage unit, and updating the stored data according to the screening result. The maximum and minimum interval.
  • storing the information of the storage unit corresponding to the found interval and the maximum and minimum interval of its stored data in the memory includes: storing in the memory in the form of a hash table Correspondence between the information of the storage unit and the maximum and minimum interval of the stored data, and the correspondence between the maximum and minimum interval and the information of the storage unit.
  • storing the information of the storage unit corresponding to the found interval and the maximum and minimum interval of its stored data in the memory based on the number of queries includes: in response to not searching in the memory When the corresponding interval is reached and the storage space in the memory reaches the upper threshold, the interval search is further performed in the storage unit, and the number of queries recorded in the storage node database in response to the found corresponding storage unit is greater than the number of queries recorded in the storage node database.
  • the number of queries of the storage unit that has the least number of queries recorded in the database, and the corresponding information of the found storage unit and its interval value are substituted for all stored in the memory.
  • the storage unit with the least number of queries is substituted for all stored in the memory.
  • the method is applicable to K-DB database integrated machine (K-DB database is an enterprise-level database system developed by Inspur Company).
  • the computing node starts the database instance to the Open state, executes the script to generate the system table, and at the same time generates the trigger A related to the storage index, and completes the application system database construction.
  • the storage node installs the database, and starts the storage node instance to the nomount (started instance) state; modifies the storage node configuration file, turns on the intelligent index function, and the storage node B process automatically performs hash calculation for each database Extend storage unit.
  • Each database storage unit corresponds to an intelligent index information on the disk space. This information maintains the peak and valley values of the columns in the tables involved in this area through the hash algorithm.
  • K-DB When a query statement that conforms to the smart index is initiated by the application, that is, when the user initiates a data query request, K-DB will build a smart index for the table involved in the query, that is, first go to the memory for query, and in the memory When the query is not found, query in each storage unit of the database, and store the queried storage unit information and the peak and valley values of its data in the memory of the storage node.
  • Each grid disk of K-DB (grid disk) A hash table will be established in the memory, and each hash table will have an array of storage units corresponding to it, and the information of the storage units will be placed in the array.
  • a method for improving the execution efficiency of a database all-in-one machine provided by the embodiment of the present invention comprehensively improves the processing efficiency of the OLAP (online analytical processing) type business of the overall all-in-one machine; reduces the CPU load of the computing node and frees up computing Resources; put the index in the memory, save hard disk storage space, improve retrieval efficiency; while improving the overall performance, reduce the overall cost.
  • OLAP online analytical processing
  • FIG. 7 shows a schematic diagram of a device for improving the execution efficiency of a database integrated machine according to the present invention.
  • the device 700 includes:
  • the data calculation module 701 is configured to filter out the maximum value and the minimum value of the stored data in each storage unit in the storage node, and store the maximum value and the minimum value as the interval endpoints;
  • the memory response module 702 is configured to, in response to a user's data query, search for the corresponding maximum and minimum interval of the storage unit where the data is located in the memory of the storage node;
  • the storage unit response module 703 is configured to, in response to not finding the corresponding interval in the memory, further search for the interval in each storage unit in turn, and further query the storage unit corresponding to the found interval.
  • the memory data update module 704 is configured to save the information of the storage unit corresponding to the found interval and the maximum and minimum interval of its stored data in the memory based on the number of queries.
  • a device for improving the execution efficiency of a database integrated machine including:
  • At least one processor At least one processor
  • a memory stores a program code that can be run by the processor, and the program code implements the method described in any of the foregoing embodiments when the program code is run by the processor.
  • FIG. 6 it is a schematic diagram of the hardware structure of an embodiment of an apparatus for improving the execution efficiency of a database integrated machine provided by the present invention.
  • the device includes a processor 601 and a memory 602, and may also include: an input device 603 and an output device 604.
  • the processor 601, the memory 602, the input device 603, and the output device 604 may be connected by a bus or in other ways. In FIG. 6, the connection by a bus is taken as an example.
  • the memory 602 as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, as implemented by the integrated database integrated machine in the embodiment of the present application.
  • the efficient method corresponds to the program instructions/modules.
  • the processor 601 executes various functional applications and data processing of the server by running non-volatile software programs, instructions, and modules stored in the memory 602, that is, implements the method for improving the execution efficiency of the integrated database machine in the foregoing method embodiment.
  • the memory 602 may include a storage program area and a storage data area.
  • the storage program area may store an operating system and an application program required by at least one function; the storage data area may store data created according to a method for improving the execution efficiency of a database integrated machine, etc. .
  • the memory 602 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage devices.
  • the memory 602 may optionally include a memory remotely provided with respect to the processor 601, and these remote memories may be connected to a local module through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
  • the input device 603 can receive inputted numeric or character information, and generate key signal input related to user settings and function control of the computer equipment that improves the execution efficiency of the database integrated machine.
  • the output device 604 may include a display device such as a display screen.
  • the program instructions/modules corresponding to the one or more methods for improving the execution efficiency of the database integrated machine are stored in the memory 602, and when executed by the processor 601, the improved database integrated machine in any of the foregoing method embodiments is executed Methods of execution efficiency.
  • Any embodiment of the computer device that executes the method for improving the execution efficiency of the integrated database machine can achieve the same or similar effect as any of the foregoing method embodiments corresponding to it.
  • the storage medium can be a magnetic disk, an optical disc, a read-only memory (ROM) or a random access memory (RAM), etc.
  • the devices, devices, etc. disclosed in the embodiments of the present invention may be various electronic terminal devices, such as mobile phones, personal digital assistants (PDA), tablet computers (PAD), smart TVs, etc., or large-scale terminals.
  • Equipment such as a server, etc., therefore, the protection scope disclosed in the embodiments of the present invention should not be limited to a specific type of equipment or equipment.
  • the client disclosed in the embodiments of the present invention may be applied to any of the above-mentioned electronic terminal devices in the form of electronic hardware, computer software, or a combination of the two.
  • the method disclosed according to the embodiment of the present invention may also be implemented as a computer program executed by a CPU, and the computer program may be stored in a computer-readable storage medium.
  • the computer program executes the above-mentioned functions defined in the method disclosed in the embodiment of the present invention.
  • the above method steps and system units can also be implemented by a controller and a computer-readable storage medium for storing a computer program that enables the controller to implement the above steps or unit functions.
  • non-volatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory Memory.
  • Volatile memory can include random access memory (RAM), which can act as external cache memory.
  • RAM can be obtained in many forms, such as synchronous RAM (DRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), Synchronous link DRAM (SLDRAM) and direct Rambus RAM (DRRAM).
  • DRAM synchronous RAM
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDR SDRAM double data rate SDRAM
  • ESDRAM enhanced SDRAM
  • SLDRAM Synchronous link DRAM
  • DRRAM direct Rambus RAM
  • the storage devices of the disclosed aspects are intended to include, but are not limited to, these and other suitable types of memory.
  • DSP digital signal processors
  • ASIC dedicated Integrated circuit
  • FPGA field programmable gate array
  • a general-purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine.
  • the processor may also be implemented as a combination of computing devices, for example, a combination of a DSP and a microprocessor, multiple microprocessors, one or more microprocessors in combination with a DSP, and/or any other such configuration.
  • the steps of the method or algorithm described in combination with the disclosure herein may be directly included in hardware, a software module executed by a processor, or a combination of the two.
  • the software module can reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, removable disk, CD-ROM (Compact Disc Read-Only Memory, read-only optical drive), or in the field Any other known storage media.
  • An exemplary storage medium is coupled to the processor such that the processor can read information from or write information to the storage medium.
  • the storage medium may be integrated with the processor.
  • the processor and the storage medium may reside in the ASIC.
  • the ASIC can reside in the user terminal.
  • the processor and the storage medium may reside as discrete components in the user terminal.
  • the functions described may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions can be stored as one or more instructions or codes on a computer-readable medium or transmitted through the computer-readable medium.
  • Computer-readable media include computer storage media and communication media, including any media that facilitates the transfer of a computer program from one location to another location.
  • a storage medium may be any available medium that can be accessed by a general-purpose or special-purpose computer.
  • the computer-readable medium may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage devices, magnetic disk storage devices or other magnetic storage devices, or may be used to carry or store instructions in the form of Or any other medium that can be accessed by a general-purpose or special-purpose computer or general-purpose or special-purpose processor. Also, any connection is properly termed a computer-readable medium.
  • coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave to send software from a website, server, or other remote source
  • coaxial cable Cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are all included in the definition of media.
  • magnetic disks and optical disks include compact disks (CDs), laser disks, optical disks, digital versatile disks (DVD), floppy disks, and Blu-ray disks. Disks usually reproduce data magnetically, while optical disks use lasers to optically reproduce data. . Combinations of the above content should also be included in the scope of computer-readable media.
  • the program can be stored in a computer-readable storage medium.
  • the storage medium mentioned can be a read-only memory, a magnetic disk or an optical disk, etc.

Landscapes

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

Abstract

A method, device and apparatus for improving the execution efficiency of a database appliance, and a medium. The method comprises the following steps: screening out the maximum value and minimum value of stored data in each storage unit in a storage node, and storing the maximum value and the minimum value as interval end points (S301); in response to a user querying data, searching a memory of the storage node for a maximum value and minimum value interval of a corresponding storage unit where the data is located (S302); in response to failing to find the corresponding intervals in the memory, further sequentially searching for the intervals in various storage units, and further querying the data in a storage unit corresponding to the found intervals (S303); and on the basis of the number of queries, storing, in the memory, information of the storage unit, which corresponds to the found intervals, and the maximum value and minimum value interval of the stored data in the storage unit (S304). Indexes are put in the memory, thereby saving on a hard disk storage space, and improving retrieval efficiency.

Description

一种提升数据库一体机执行效率的方法、设备、装置和介质Method, equipment, device and medium for improving execution efficiency of database integrated machine
本申请要求于2020年03月13日提交中国国家知识产权局,申请号为202010174055.X,发明名称为“一种提升数据库一体机执行效率的方法、设备、装置和介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application requires that it be submitted to the State Intellectual Property Office of China on March 13, 2020. The application number is 202010174055.X, and the invention title is "A method, equipment, device and medium for improving the execution efficiency of a database integrated machine". Priority, the entire content of which is incorporated in this application by reference.
技术领域Technical field
本发明涉及计算机领域,并且更具体地,涉及一种提升数据库一体机执行效率的方法、设备、装置和介质。The present invention relates to the computer field, and more specifically, to a method, equipment, device and medium for improving the execution efficiency of a database integrated machine.
背景技术Background technique
当前数据库一体机产品被广泛应用于各个领域,在业务数据量急剧增长的同时,客户对性能有了更高的诉求。现有数据库一体机技术通常采用计算和存储分离的模式,但这种模式本身并没有降低计算节点的计算量;并且由于数据库软件机制的限制,单纯的增加计算节点的数量并不能让整体性能达到线性提升,于是需要一种变通方案让存储节点能够配合并协助计算节点完成计算,从根本上释放计算节点的计算压力,从而达到降低成本的作用。Currently, all-in-one database products are widely used in various fields. While the amount of business data is increasing rapidly, customers have higher demands for performance. The existing database all-in-one technology usually adopts the mode of separation of computing and storage, but this mode itself does not reduce the computing capacity of the computing nodes; and due to the limitation of the database software mechanism, simply increasing the number of computing nodes cannot achieve the overall performance Linear increase, so a workaround is needed to allow storage nodes to cooperate and assist computing nodes to complete calculations, which will fundamentally release the computing pressure of computing nodes, thereby achieving the effect of reducing costs.
现有的两种索引方法,一是存储节点无索引、计算节点B树索引,如图1所示,索引的顶层为根,它包括指向索引中下一层次的条目,下一层次为分支块,它又指向位于索引中下一层索引中下一层次的块,最底层的是叶节点,它包含指向表行的索引条目,叶块是双向关联的,这边与按键值 升序或降序扫描索引;二是存储节点无索引、计算节点位图索引,如图2所示,位图索引也可以按B树形式进行组织,但是,叶节点会存储每个键值的位图,而不是行ID(标识)列表。位图中每一位与一个可能的行ID对应,如果设置了该位,则表示具有对应行ID的行包含键值。There are two existing indexing methods. One is to store nodes without indexes and compute node B-tree indexes. As shown in Figure 1, the top level of the index is the root, which includes entries pointing to the next level in the index, and the next level is the branch block. , It points to the next-level block in the next level of the index. The bottom level is the leaf node, which contains index entries that point to the table row. The leaf block is bidirectionally associated, and the key value is scanned in ascending or descending order. Index; the second is the storage node has no index, and the node bitmap index is calculated. As shown in Figure 2, the bitmap index can also be organized in the form of B-tree, but the leaf node will store the bitmap of each key value, not the row ID (identification) list. Each bit in the bitmap corresponds to a possible row ID. If this bit is set, it means that the row with the corresponding row ID contains the key value.
以上两种索引的问题:所有已知索引都建立在计算节点上,计算节点计算压力并没有被分担;创建索引和维护索引需要时间成本,这个成本随着数据量的增加而加大;创建索引和维护索引需要空间成本,每一条索引都要占据数据库的物理存储空间,数据量越大,占用空间也越大(数据表占据的是数据库的数据空间);会降低表的增删改的效率,因为每次增删改索引需要进行动态维护,导致时间变长。The problems of the above two indexes: all known indexes are built on the computing nodes, and the computing pressure of the computing nodes is not shared; creating and maintaining indexes require time costs, and this cost increases as the amount of data increases; creating indexes And maintaining indexes requires space costs. Each index occupies the physical storage space of the database. The larger the amount of data, the larger the occupied space (the data table occupies the data space of the database); it will reduce the efficiency of adding, deleting, and modifying tables. Because the index needs to be dynamically maintained each time the index is added, deleted, and changed, the time becomes longer.
发明内容Summary of the invention
鉴于此,本发明实施例的目的在于提出一种提升数据库一体机执行效率的方法、设备、装置和介质,在存储节点上建立发明智能索引,通过智能索引辅助计算节点SQL(Structured Query Language,结构化查询语言)处理,降低计算节点的计算负载,提升一体机整体性能。In view of this, the purpose of the embodiments of the present invention is to propose a method, equipment, device and medium for improving the execution efficiency of a database all-in-one machine, establish an invented intelligent index on a storage node, and assist the computing node SQL (Structured Query Language, structure) through the intelligent index Query language) processing, reduce the computing load of the computing node, and improve the overall performance of the all-in-one machine.
基于上述目的,本发明实施例的一方面提供了一种提升数据库一体机执行效率的方法,包括以下步骤:Based on the foregoing objectives, one aspect of the embodiments of the present invention provides a method for improving the execution efficiency of a database integrated machine, which includes the following steps:
筛选出存储节点中的每一个存储单元中的存储数据的最大值和最小值,并将所述最大值和最小值作为区间端点进行存储;Filter out the maximum value and minimum value of the stored data in each storage unit in the storage node, and store the maximum value and minimum value as the interval endpoints;
响应于用户进行数据查询,在所述存储节点的内存中查找所述数据所位于的相应的所述存储单元的最大值和最小值区间;In response to a user's data query, search the memory of the storage node for the corresponding maximum and minimum interval of the storage unit where the data is located;
响应于未在所述内存中查找到对应的区间而进一步依次到各个存储单元中进行区间查找,并在所述查找到的区间相对应的存储单元中进一步查询所述数据;In response to not finding the corresponding interval in the memory, further searching for the interval in each storage unit in turn, and further querying the data in the storage unit corresponding to the found interval;
基于查询次数将所述查找到的区间相对应的存储单元的信息与其存储数据的最大值和最小值区间保存到所述内存中。Based on the number of queries, the information of the storage unit corresponding to the found interval and the maximum and minimum interval of its stored data are stored in the memory.
在一些实施方式中,筛选出存储节点中的每一个存储单元中的存储数据的最大值和最小值,并将所述最大值和最小值作为区间端点进行存储包括:In some embodiments, filtering out the maximum value and minimum value of the stored data in each storage unit in the storage node, and storing the maximum value and minimum value as interval endpoints includes:
对存储节点中的每一个存储单元中的每一个数据进行哈希计算,以筛选出所述每一个存储单元中进行哈希计算后的最大值和最小值并将所述最大值和最小值作为区间端点进行存储。Perform hash calculation on each data in each storage unit in the storage node to filter out the maximum and minimum values after hash calculation in each storage unit, and use the maximum and minimum values as The end points of the interval are stored.
在一些实施方式中,响应于用户进行数据查询,在所述存储节点的内存中查找所述数据所位于的相应的所述存储单元的最大值和最小值区间包括:In some embodiments, in response to a user's data query, searching in the memory of the storage node for the corresponding maximum and minimum interval of the storage unit where the data is located includes:
将要查询的所述数据进行哈希计算,并将所述哈希计算后的数据在所述存储节点的内存中查找对应的最大值和最小值区间。Perform a hash calculation on the data to be queried, and search for the corresponding maximum and minimum interval in the memory of the storage node for the hashed data.
在一些实施方式中,所述方法还包括:In some embodiments, the method further includes:
响应于所述存储节点中的存储单元有数据更新,重新筛选所述存储单元存储数据的最大值和最小值,并根据筛选结果更新所述存储的最大值和最小值区间。In response to the data update of the storage unit in the storage node, the maximum and minimum values of the stored data of the storage unit are re-screened, and the stored maximum and minimum interval is updated according to the screening result.
在一些实施方式中,将所述查找到的区间相对应的存储单元的信息与其存储数据的最大值和最小值区间保存到所述内存中包括:In some embodiments, storing the information of the storage unit corresponding to the found interval and the maximum and minimum interval of its stored data in the memory includes:
在所述内存中以哈希表的形式保存所述存储单元的信息与其存储数据的最大值和最小值区间、以及所述最大值和最小值区间与所述存储单元信息的对应关系。The information of the storage unit and the maximum and minimum interval of the stored data and the correspondence relationship between the maximum and minimum interval and the information of the storage unit are stored in the memory in the form of a hash table.
在一些实施方式中,基于查询次数将所述查找到的区间相对应的存储单元的信息与其存储数据的最大值和最小值区间保存到所述内存中包括:In some embodiments, storing the information of the storage unit corresponding to the found interval and the maximum and minimum interval of its stored data in the memory based on the number of queries includes:
响应于未在所述内存中查找到对应的区间并且所述内存中的存储空间达到阈值上限,进一步到所述存储单元中进行区间查找,响应于查找到的对应的存储单元在所述存储节点数据库中记录的查询次数大于所述内存中存储的存储单元中在所述数据库中记录的查询次数最少的所述存储单元的查询次数,而将所述查找到的对应的存储单元信息及其区间值替换所述内存中存储的所述查询次数最少的存储单元。In response to not finding the corresponding interval in the memory and the storage space in the memory reaches the upper threshold value, the interval search is further performed in the storage unit, and in response to the found corresponding storage unit in the storage node The number of queries recorded in the database is greater than the number of queries of the storage unit that has the least number of queries recorded in the database among the storage units stored in the memory, and the corresponding storage unit information found and its interval are compared The value replaces the storage unit with the least number of queries stored in the memory.
在一些实施方式中,所述方法适用于K-DB数据库一体机。In some embodiments, the method is applicable to a K-DB database all-in-one machine.
本发明实施例的另一方面提供了一种提升数据库一体机执行效率的设备,包括:Another aspect of the embodiments of the present invention provides a device for improving the execution efficiency of a database integrated machine, including:
数据计算模块,配置为筛选出存储节点中的每一个存储单元中的存储数据的最大值和最小值,并将所述最大值和最小值作为区间端点进行存储;The data calculation module is configured to filter out the maximum value and the minimum value of the stored data in each storage unit in the storage node, and store the maximum value and the minimum value as the interval endpoints;
内存响应模块,配置为响应于用户进行数据查询,在所述存储节点的内存中查找所述数据所位于的相应的所述存储单元的最大值和最小值区间;A memory response module, configured to, in response to a user's data query, search for the corresponding maximum and minimum interval of the storage unit where the data is located in the memory of the storage node;
存储单元响应模块,配置为响应于未在所述内存中查找到对应的区间而进一步依次到各个存储单元中进行区间查找,并在所述查找到的区间相对应的存储单元中进一步查询所述数据;The storage unit response module is configured to, in response to failing to find the corresponding interval in the memory, to further search for the interval in each storage unit in turn, and to further inquire the storage unit corresponding to the found interval data;
内存数据更新模块,配置为基于查询次数将所述查找到的区间相对应的存储单元的信息与其存储数据的最大值和最小值区间保存到所述内存中。The memory data update module is configured to save the information of the storage unit corresponding to the found interval and the maximum and minimum interval of its stored data in the memory based on the number of queries.
本发明实施例的又一方面提供了一种提升数据库一体机执行效率的装置,包括:Another aspect of the embodiments of the present invention provides a device for improving the execution efficiency of a database integrated machine, including:
至少一个处理器;和At least one processor; and
存储器,所述存储器存储有处理器可运行的程序代码,所述程序代码 在被处理器运行时实施如上所述的方法。A memory, the memory stores a program code that can be run by the processor, and the program code implements the method as described above when the program code is run by the processor.
本发明实施例的又一方面提供了一种计算机介质,包括可被处理器执行的程序代码,所述程序代码在被处理器执行时实施如上所述的方法。Another aspect of the embodiments of the present invention provides a computer medium including program code executable by a processor, and the program code implements the above-mentioned method when being executed by the processor.
本发明具有以下有益技术效果:本发明实施例提供的一种提升数据库一体机执行效率的方法、设备、装置和介质全面提升整体一体机的OLAP(Online analytical processing,联机分析处理)类型业务的处理效率;降低计算节点CPU(central processing unit,中央处理器)负载,解放计算资源;将索引放到内存中,节省硬盘存储空间,提升检索效率;整体性能的提升的同时,降低整体成本。The present invention has the following beneficial technical effects: a method, equipment, device, and medium for improving the execution efficiency of a database integrated machine provided by the embodiments of the present invention comprehensively improve the processing of the OLAP (Online Analytical Processing) type business of the integrated integrated machine Efficiency: Reduce the CPU (central processing unit) load of the computing node and free up computing resources; put the index in the memory to save hard disk storage space and improve retrieval efficiency; while the overall performance is improved, the overall cost is reduced.
附图说明Description of the drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的实施例。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only These are some embodiments of the present invention. For those of ordinary skill in the art, other embodiments can be obtained based on these drawings without creative work.
图1是现有技术中的B树索引的示意图;Figure 1 is a schematic diagram of a B-tree index in the prior art;
图2是现有技术中的位图索引的示意图;FIG. 2 is a schematic diagram of bitmap index in the prior art;
图3是根据本发明的一种提升数据库一体机执行效率的方法的流程图;3 is a flowchart of a method for improving the execution efficiency of a database integrated machine according to the present invention;
图4是根据本发明方法建立的智能存储索引在数据库一体机结构中的示意图;4 is a schematic diagram of the intelligent storage index established according to the method of the present invention in the structure of a database integrated machine;
图5是本发明方法的存储索引技术的示意图;Figure 5 is a schematic diagram of the storage indexing technology of the method of the present invention;
图6是根据本发明的一种提升数据库一体机执行效率的装置的硬件结构示意图;6 is a schematic diagram of the hardware structure of a device for improving the execution efficiency of a database integrated machine according to the present invention;
图7是根据本发明的一种提升数据库一体机执行效率的设备的示意图。Fig. 7 is a schematic diagram of a device for improving the execution efficiency of a database integrated machine according to the present invention.
具体实施方式Detailed ways
以下描述了本发明的实施例。然而,应该理解,所公开的实施例仅仅是示例,并且其他实施例可以采取各种替代形式。附图不一定按比例绘制;某些功能可能被夸大或最小化以显示特定部件的细节。因此,本文公开的具体结构和功能细节不应被解释为限制性的,而仅仅是作为用于教导本领域技术人员以各种方式使用本发明的代表性基础。如本领域普通技术人员将理解的,参考任何一个附图所示出和描述的各种特征可以与一个或多个其他附图中所示的特征组合以产生没有明确示出或描述的实施例。所示特征的组合为典型应用提供了代表性实施例。然而,与本发明的教导相一致的特征的各种组合和修改对于某些特定应用或实施方式可能是期望的。The embodiments of the present invention are described below. However, it should be understood that the disclosed embodiments are merely examples, and other embodiments may take various alternative forms. The drawings are not necessarily drawn to scale; some functions may be exaggerated or minimized to show details of specific components. Therefore, the specific structural and functional details disclosed herein should not be construed as restrictive, but merely serve as a representative basis for teaching those skilled in the art to use the present invention in various ways. As those of ordinary skill in the art will understand, various features shown and described with reference to any one drawing can be combined with features shown in one or more other drawings to produce embodiments that are not explicitly shown or described. . The combinations of features shown provide representative embodiments for typical applications. However, various combinations and modifications of features consistent with the teachings of the present invention may be desirable for certain specific applications or implementations.
为使本发明的目的、技术方案和优点更加清楚明白,以下结合具体实施例,并参照附图,对本发明实施例进一步详细说明。In order to make the objectives, technical solutions, and advantages of the present invention clearer, the following describes the embodiments of the present invention in detail in conjunction with specific embodiments and with reference to the accompanying drawings.
基于上述目的,本发明的实施例一方面提出了一种提升数据库一体机执行效率的方法,如图3所示,包括以下步骤:Based on the foregoing objectives, one aspect of the embodiments of the present invention proposes a method for improving the execution efficiency of a database integrated machine. As shown in FIG. 3, the method includes the following steps:
步骤S301:筛选出存储节点中的每一个存储单元中的存储数据的最大值和最小值,并将所述最大值和最小值作为区间端点进行存储;Step S301: Filter out the maximum value and the minimum value of the stored data in each storage unit in the storage node, and store the maximum value and the minimum value as the interval endpoints;
步骤S302:响应于用户进行数据查询,在所述存储节点的内存中查找所述数据所位于的相应的所述存储单元的最大值和最小值区间;Step S302: In response to the user's data query, search for the corresponding maximum and minimum interval of the storage unit where the data is located in the memory of the storage node;
步骤S303:响应于未在所述内存中查找到对应的区间而进一步依次到各个存储单元中进行区间查找,并在所述查找到的区间相对应的存储单元中进一步查询所述数据;Step S303: In response to not finding the corresponding interval in the memory, further searching for intervals in each storage unit in turn, and further querying the data in the storage unit corresponding to the found interval;
步骤S304:基于查询次数将所述查找到的区间相对应的存储单元的信息与其存储数据的最大值和最小值区间保存到所述内存中。Step S304: Save the information of the storage unit corresponding to the found interval and the maximum and minimum interval of its stored data in the memory based on the number of queries.
在一些实施例中,存储软件将若干本地磁盘安装在服务器上,该服务器称为存储服务器。存储服务器结构上相互独立,其中一个容量增长,不会影响到其他服务器,各存储服务器被看作一体,这种相互独立的水平存储结构使得数据能够实现大容量扩展,保证大数据量。如图4所示,业务数据在数据库一体机中是以数据块为单元(即存储单元)进行存储的,根据本发明的数据库智能索引有别于传统的B树索引,本发明是将每个数据块进行数据排列,取出排列后的峰值和谷值,然后把峰值和谷值存到存储节点的内存中,后续SQL(结构化查询语言)请求先通过智能索引判断需要的数据在那些数据块中,然后把相关的数据块从存储节点通过网络传递给计算节点,供后续事务请求和访问,这种方式既降低了存储空间,又提升了查询效率。In some embodiments, the storage software installs several local disks on a server, which is called a storage server. The storage servers are structurally independent. One of the capacity growth will not affect the other servers. Each storage server is regarded as a whole. This mutually independent horizontal storage structure enables large-capacity expansion of data and guarantees large data volume. As shown in Figure 4, the business data is stored in the integrated database machine using data blocks as a unit (ie storage unit). The intelligent database index according to the present invention is different from the traditional B-tree index. Data blocks are arranged, the peaks and valleys after the arrangement are taken out, and then the peaks and valleys are stored in the memory of the storage node. The subsequent SQL (Structured Query Language) request first judges the required data through the intelligent index in those data blocks Then, the relevant data block is transferred from the storage node to the computing node through the network for subsequent transaction requests and access. This method not only reduces the storage space, but also improves the query efficiency.
在一些实施例中,如图5所示,从数据库表中的每个存储块中取出峰值和谷值,存在存储节点的内存中,分别是(4,9)、(1,6)、(3,7),假如一个SQL查询语句要找到一个C3列等于2的值,数据库在做行与列筛选就只会在第二个区间内扫描,任何不可能包含匹配记录的存储区间都会被跳过,在大多数情况下,这将大幅度减少需要执行的I/O(输入/输出)量。In some embodiments, as shown in FIG. 5, the peak and valley values are taken from each storage block in the database table and stored in the memory of the storage node, which are (4, 9), (1, 6), ( 3, 7), if a SQL query statement wants to find a value of C3 column equal to 2, the database will only scan in the second interval when doing row and column filtering, and any storage interval that cannot contain matching records will be skipped However, in most cases, this will drastically reduce the amount of I/O (input/output) that needs to be performed.
在一些实施例中,筛选出存储节点中的每一个存储单元中的存储数据的最大值和最小值,并将所述最大值和最小值作为区间端点进行存储包括:对存储节点中的每一个存储单元中的每一个数据进行哈希计算,以筛选出所述每一个存储单元中进行哈希计算后的最大值和最小值并将所述最大值和最小值作为区间端点进行存储。In some embodiments, filtering out the maximum value and minimum value of the stored data in each storage unit in the storage node, and storing the maximum value and minimum value as the interval endpoints includes: storing each of the storage nodes A hash calculation is performed on each data in the storage unit to filter out the maximum value and the minimum value after the hash calculation in each storage unit, and the maximum value and the minimum value are stored as interval endpoints.
在一些实施例中,响应于用户进行数据查询,在所述存储节点的内存中查找所述数据所位于的相应的所述存储单元的最大值和最小值区间包括:将要查询的所述数据进行哈希计算,并将所述哈希计算后的数据在所 述存储节点的内存中查找对应的最大值和最小值区间。In some embodiments, in response to a user's data query, searching in the memory of the storage node for the corresponding maximum and minimum interval of the storage unit where the data is located includes: performing the query on the data Hash calculation, and search for the corresponding maximum and minimum interval in the memory of the storage node for the data after the hash calculation.
在一些实施例中,所述方法还包括:响应于所述存储节点中的存储单元有数据更新,重新筛选所述存储单元存储数据的最大值和最小值,并根据筛选结果更新所述存储的最大值和最小值区间。In some embodiments, the method further includes: in response to a data update of the storage unit in the storage node, re-screening the maximum and minimum values of the data stored in the storage unit, and updating the stored data according to the screening result. The maximum and minimum interval.
在一些实施例中,将所述查找到的区间相对应的存储单元的信息与其存储数据的最大值和最小值区间保存到所述内存中包括:在所述内存中以哈希表的形式保存所述存储单元的信息与其存储数据的最大值和最小值区间、以及所述最大值和最小值区间与所述存储单元信息的对应关系。In some embodiments, storing the information of the storage unit corresponding to the found interval and the maximum and minimum interval of its stored data in the memory includes: storing in the memory in the form of a hash table Correspondence between the information of the storage unit and the maximum and minimum interval of the stored data, and the correspondence between the maximum and minimum interval and the information of the storage unit.
在一些实施例中,基于查询次数将所述查找到的区间相对应的存储单元的信息与其存储数据的最大值和最小值区间保存到所述内存中包括:响应于未在所述内存中查找到对应的区间并且所述内存中的存储空间达到阈值上限,进一步到所述存储单元中进行区间查找,响应于查找到的对应的存储单元在所述存储节点数据库中记录的查询次数大于所述内存中存储的存储单元中在所述数据库中记录的查询次数最少的所述存储单元的查询次数,而将所述查找到的对应的存储单元信息及其区间值替换所述内存中存储的所述查询次数最少的存储单元。In some embodiments, storing the information of the storage unit corresponding to the found interval and the maximum and minimum interval of its stored data in the memory based on the number of queries includes: in response to not searching in the memory When the corresponding interval is reached and the storage space in the memory reaches the upper threshold, the interval search is further performed in the storage unit, and the number of queries recorded in the storage node database in response to the found corresponding storage unit is greater than the number of queries recorded in the storage node database. Among the storage units stored in the memory, the number of queries of the storage unit that has the least number of queries recorded in the database, and the corresponding information of the found storage unit and its interval value are substituted for all stored in the memory. The storage unit with the least number of queries.
在一些实施例中,所述方法适用于K-DB数据库一体机(K-DB数据库是浪潮公司开发的企业级数据库系统)。In some embodiments, the method is applicable to K-DB database integrated machine (K-DB database is an enterprise-level database system developed by Inspur Company).
在根据本发明的一个实施例中,计算节点启动数据库实例到Open(打开)状态,执行脚本生成系统表,同时生成与存储索引相关的触发器A,并完成应用系统数据库建库。存储节点安装数据库,并启动存储节点实例到nomount(启动实例)状态;修改存储节点配置文件,打开智能索引功能,存储节点B进程自动对每一个数据库Extend存储单元进行哈希计算。每一个数据库存储单元在磁盘空间上都会对应一个智能索引的信息,这个信息中维护着这个区域中涉及到的表中通过哈希算法得出列的峰值和谷值。In an embodiment according to the present invention, the computing node starts the database instance to the Open state, executes the script to generate the system table, and at the same time generates the trigger A related to the storage index, and completes the application system database construction. The storage node installs the database, and starts the storage node instance to the nomount (started instance) state; modifies the storage node configuration file, turns on the intelligent index function, and the storage node B process automatically performs hash calculation for each database Extend storage unit. Each database storage unit corresponds to an intelligent index information on the disk space. This information maintains the peak and valley values of the columns in the tables involved in this area through the hash algorithm.
当符合智能索引的查询语句被应用发起时,也即用户发起数据查询请求时,K-DB就会为这个查询中涉及的表构建智能索引,也即首先去内存中进行查询,并在内存中未查询到时到数据库的各个存储单元中进行查询,并将查询到的存储单元信息及其数据的峰谷值存储在存储节点的内存中,K-DB的每一个grid disk(网格硬盘)会在内存中建立一个哈希表,每个哈希表会有一个存储单元数组与之对应,数组里放的是存储单元的信息。When a query statement that conforms to the smart index is initiated by the application, that is, when the user initiates a data query request, K-DB will build a smart index for the table involved in the query, that is, first go to the memory for query, and in the memory When the query is not found, query in each storage unit of the database, and store the queried storage unit information and the peak and valley values of its data in the memory of the storage node. Each grid disk of K-DB (grid disk) A hash table will be established in the memory, and each hash table will have an array of storage units corresponding to it, and the information of the storage units will be placed in the array.
在技术上可行的情况下,以上针对不同实施例所列举的技术特征可以相互组合,或者改变、添加以及省略等等,从而形成本发明范围内的另外实施例。Where technically feasible, the technical features listed above for different embodiments can be combined with each other, or changed, added, omitted, etc., to form additional embodiments within the scope of the present invention.
从上述实施例可以看出,本发明实施例提供的一种提升数据库一体机执行效率的方法全面提升整体一体机的OLAP(联机分析处理)类型业务的处理效率;降低计算节点CPU负载,解放计算资源;将索引放到内存中,节省硬盘存储空间,提升检索效率;整体性能的提升的同时,降低整体成本。It can be seen from the above-mentioned embodiments that a method for improving the execution efficiency of a database all-in-one machine provided by the embodiment of the present invention comprehensively improves the processing efficiency of the OLAP (online analytical processing) type business of the overall all-in-one machine; reduces the CPU load of the computing node and frees up computing Resources; put the index in the memory, save hard disk storage space, improve retrieval efficiency; while improving the overall performance, reduce the overall cost.
基于上述目的,本发明实施例的另一个方面,提出了一种提升数据库一体机执行效率的设备,图7示出的是根据本发明的一种提升数据库一体机执行效率的设备的示意图。如图7所示,设备700包括:Based on the foregoing objective, another aspect of the embodiments of the present invention proposes a device for improving the execution efficiency of a database integrated machine. FIG. 7 shows a schematic diagram of a device for improving the execution efficiency of a database integrated machine according to the present invention. As shown in FIG. 7, the device 700 includes:
数据计算模块701,配置为筛选出存储节点中的每一个存储单元中的存储数据的最大值和最小值,并将所述最大值和最小值作为区间端点进行存储;The data calculation module 701 is configured to filter out the maximum value and the minimum value of the stored data in each storage unit in the storage node, and store the maximum value and the minimum value as the interval endpoints;
内存响应模块702,配置为响应于用户进行数据查询,在所述存储节点的内存中查找所述数据所位于的相应的所述存储单元的最大值和最小值区间;The memory response module 702 is configured to, in response to a user's data query, search for the corresponding maximum and minimum interval of the storage unit where the data is located in the memory of the storage node;
存储单元响应模块703,配置为响应于未在所述内存中查找到对应的区 间而进一步依次到各个存储单元中进行区间查找,并在所述查找到的区间相对应的存储单元中进一步查询所述数据;The storage unit response module 703 is configured to, in response to not finding the corresponding interval in the memory, further search for the interval in each storage unit in turn, and further query the storage unit corresponding to the found interval. The data;
内存数据更新模块704,配置为基于查询次数将所述查找到的区间相对应的存储单元的信息与其存储数据的最大值和最小值区间保存到所述内存中。The memory data update module 704 is configured to save the information of the storage unit corresponding to the found interval and the maximum and minimum interval of its stored data in the memory based on the number of queries.
本发明实施例的又一个方面,提出了一种提升数据库一体机执行效率的装置,包括:In another aspect of the embodiments of the present invention, a device for improving the execution efficiency of a database integrated machine is proposed, including:
至少一个处理器;和At least one processor; and
存储器,所述存储器存储有处理器可运行的程序代码,所述程序代码在被处理器运行时实施上述任意实施例所述的方法。A memory, the memory stores a program code that can be run by the processor, and the program code implements the method described in any of the foregoing embodiments when the program code is run by the processor.
如图6所示,为本发明提供的提升数据库一体机执行效率的装置的一个实施例的硬件结构示意图。As shown in FIG. 6, it is a schematic diagram of the hardware structure of an embodiment of an apparatus for improving the execution efficiency of a database integrated machine provided by the present invention.
以如图6所示装置包括处理器601以及存储器602,并还可以包括:输入装置603和输出装置604。As shown in FIG. 6, the device includes a processor 601 and a memory 602, and may also include: an input device 603 and an output device 604.
处理器601、存储器602、输入装置603和输出装置604可以通过总线或者其他方式连接,图6中以通过总线连接为例。The processor 601, the memory 602, the input device 603, and the output device 604 may be connected by a bus or in other ways. In FIG. 6, the connection by a bus is taken as an example.
存储器602作为一种非易失性计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块,如本申请实施例中的所述提升数据库一体机执行效率的方法对应的程序指令/模块。处理器601通过运行存储在存储器602中的非易失性软件程序、指令以及模块,从而执行服务器的各种功能应用以及数据处理,即实现上述方法实施例的提升数据库一体机执行效率的方法。The memory 602, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, as implemented by the integrated database integrated machine in the embodiment of the present application. The efficient method corresponds to the program instructions/modules. The processor 601 executes various functional applications and data processing of the server by running non-volatile software programs, instructions, and modules stored in the memory 602, that is, implements the method for improving the execution efficiency of the integrated database machine in the foregoing method embodiment.
存储器602可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据 提升数据库一体机执行效率的方法所创建的数据等。此外,存储器602可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实施例中,存储器602可选包括相对于处理器601远程设置的存储器,这些远程存储器可以通过网络连接至本地模块。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 602 may include a storage program area and a storage data area. The storage program area may store an operating system and an application program required by at least one function; the storage data area may store data created according to a method for improving the execution efficiency of a database integrated machine, etc. . In addition, the memory 602 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage devices. In some embodiments, the memory 602 may optionally include a memory remotely provided with respect to the processor 601, and these remote memories may be connected to a local module through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
输入装置603可接收输入的数字或字符信息,以及产生与提升数据库一体机执行效率的方法的计算机设备的用户设置以及功能控制有关的键信号输入。输出装置604可包括显示屏等显示设备。The input device 603 can receive inputted numeric or character information, and generate key signal input related to user settings and function control of the computer equipment that improves the execution efficiency of the database integrated machine. The output device 604 may include a display device such as a display screen.
所述一个或者多个提升数据库一体机执行效率的方法对应的程序指令/模块存储在所述存储器602中,当被所述处理器601执行时,执行上述任意方法实施例中的提升数据库一体机执行效率的方法。The program instructions/modules corresponding to the one or more methods for improving the execution efficiency of the database integrated machine are stored in the memory 602, and when executed by the processor 601, the improved database integrated machine in any of the foregoing method embodiments is executed Methods of execution efficiency.
所述执行所述提升数据库一体机执行效率的方法的计算机设备的任何一个实施例,可以达到与之对应的前述任意方法实施例相同或者相类似的效果。Any embodiment of the computer device that executes the method for improving the execution efficiency of the integrated database machine can achieve the same or similar effect as any of the foregoing method embodiments corresponding to it.
最后需要说明的是,本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,可以通过计算机程序来指令相关硬件来完成,所述的程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(ROM)或随机存储记忆体(RAM)等。Finally, it should be noted that a person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing relevant hardware through a computer program, and the program can be stored in a computer readable storage medium. When the program is executed, it may include the processes of the above-mentioned method embodiments. Wherein, the storage medium can be a magnetic disk, an optical disc, a read-only memory (ROM) or a random access memory (RAM), etc.
此外,典型地,本发明实施例公开所述的装置、设备等可为各种电子终端设备,例如手机、个人数字助理(PDA)、平板电脑(PAD)、智能电视等,也可以是大型终端设备,如服务器等,因此本发明实施例公开的保护范围不应限定为某种特定类型的装置、设备。本发明实施例公开所述的客户端可以是以电子硬件、计算机软件或两者的组合形式应用于上述任 意一种电子终端设备中。In addition, typically, the devices, devices, etc. disclosed in the embodiments of the present invention may be various electronic terminal devices, such as mobile phones, personal digital assistants (PDA), tablet computers (PAD), smart TVs, etc., or large-scale terminals. Equipment, such as a server, etc., therefore, the protection scope disclosed in the embodiments of the present invention should not be limited to a specific type of equipment or equipment. The client disclosed in the embodiments of the present invention may be applied to any of the above-mentioned electronic terminal devices in the form of electronic hardware, computer software, or a combination of the two.
此外,根据本发明实施例公开的方法还可以被实现为由CPU执行的计算机程序,该计算机程序可以存储在计算机可读存储介质中。在该计算机程序被CPU执行时,执行本发明实施例公开的方法中限定的上述功能。In addition, the method disclosed according to the embodiment of the present invention may also be implemented as a computer program executed by a CPU, and the computer program may be stored in a computer-readable storage medium. When the computer program is executed by the CPU, it executes the above-mentioned functions defined in the method disclosed in the embodiment of the present invention.
此外,上述方法步骤以及系统单元也可以利用控制器以及用于存储使得控制器实现上述步骤或单元功能的计算机程序的计算机可读存储介质实现。In addition, the above method steps and system units can also be implemented by a controller and a computer-readable storage medium for storing a computer program that enables the controller to implement the above steps or unit functions.
此外,应该明白的是,本文所述的计算机可读存储介质(例如,存储器)可以是易失性存储器或非易失性存储器,或者可以包括易失性存储器和非易失性存储器两者。作为例子而非限制性的,非易失性存储器可以包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦写可编程ROM(EEPROM)或快闪存储器。易失性存储器可以包括随机存取存储器(RAM),该RAM可以充当外部高速缓存存储器。作为例子而非限制性的,RAM可以以多种形式获得,比如同步RAM(DRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据速率SDRAM(DDR SDRAM)、增强SDRAM(ESDRAM)、同步链路DRAM(SLDRAM)、以及直接Rambus RAM(DRRAM)。所公开的方面的存储设备意在包括但不限于这些和其它合适类型的存储器。In addition, it should be understood that the computer-readable storage medium (eg, memory) described herein may be volatile memory or nonvolatile memory, or may include both volatile memory and nonvolatile memory. By way of example and not limitation, non-volatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory Memory. Volatile memory can include random access memory (RAM), which can act as external cache memory. As an example and not limitation, RAM can be obtained in many forms, such as synchronous RAM (DRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), Synchronous link DRAM (SLDRAM) and direct Rambus RAM (DRRAM). The storage devices of the disclosed aspects are intended to include, but are not limited to, these and other suitable types of memory.
本领域技术人员还将明白的是,结合这里的公开所描述的各种示例性逻辑块、模块、电路和算法步骤可以被实现为电子硬件、计算机软件或两者的组合。为了清楚地说明硬件和软件的这种可互换性,已经就各种示意性组件、方块、模块、电路和步骤的功能对其进行了一般性的描述。这种功能是被实现为软件还是被实现为硬件取决于具体应用以及施加给整个系统的设计约束。本领域技术人员可以针对每种具体应用以各种方式来实现所述的功能,但是这种实现决定不应被解释为导致脱离本发明实施例公开 的范围。Those skilled in the art will also understand that the various exemplary logic blocks, modules, circuits, and algorithm steps described in conjunction with the disclosure herein can be implemented as electronic hardware, computer software, or a combination of both. In order to clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and functions have been described in general terms. Whether this function is implemented as software or as hardware depends on the specific application and the design constraints imposed on the entire system. Those skilled in the art can implement the described functions in various ways for each specific application, but such implementation decisions should not be construed as causing a departure from the scope of the disclosure of the embodiments of the present invention.
结合这里的公开所描述的各种示例性逻辑块、模块和电路可以利用被设计成用于执行这里所述功能的下列部件来实现或执行:通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或其它可编程逻辑器件、分立门或晶体管逻辑、分立的硬件组件或者这些部件的任何组合。通用处理器可以是微处理器,但是可替换地,处理器可以是任何传统处理器、控制器、微控制器或状态机。处理器也可以被实现为计算设备的组合,例如,DSP和微处理器的组合、多个微处理器、一个或多个微处理器结合DSP和/或任何其它这种配置。The various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure herein can be implemented or executed using the following components designed to perform the functions described herein: general-purpose processors, digital signal processors (DSP), and dedicated Integrated circuit (ASIC), field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination of these components. A general-purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. The processor may also be implemented as a combination of computing devices, for example, a combination of a DSP and a microprocessor, multiple microprocessors, one or more microprocessors in combination with a DSP, and/or any other such configuration.
结合这里的公开所描述的方法或算法的步骤可以直接包含在硬件中、由处理器执行的软件模块中或这两者的组合中。软件模块可以驻留在RAM存储器、快闪存储器、ROM存储器、EPROM存储器、EEPROM存储器、寄存器、硬盘、可移动盘、CD-ROM(Compact Disc Read-Only Memory,只读光盘驱动器)、或本领域已知的任何其它形式的存储介质中。示例性的存储介质被耦合到处理器,使得处理器能够从该存储介质中读取信息或向该存储介质写入信息。在一个替换方案中,所述存储介质可以与处理器集成在一起。处理器和存储介质可以驻留在ASIC中。ASIC可以驻留在用户终端中。在一个替换方案中,处理器和存储介质可以作为分立组件驻留在用户终端中。The steps of the method or algorithm described in combination with the disclosure herein may be directly included in hardware, a software module executed by a processor, or a combination of the two. The software module can reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, removable disk, CD-ROM (Compact Disc Read-Only Memory, read-only optical drive), or in the field Any other known storage media. An exemplary storage medium is coupled to the processor such that the processor can read information from or write information to the storage medium. In an alternative, the storage medium may be integrated with the processor. The processor and the storage medium may reside in the ASIC. The ASIC can reside in the user terminal. In an alternative, the processor and the storage medium may reside as discrete components in the user terminal.
在一个或多个示例性设计中,所述功能可以在硬件、软件、固件或其任意组合中实现。如果在软件中实现,则可以将所述功能作为一个或多个指令或代码存储在计算机可读介质上或通过计算机可读介质来传送。计算机可读介质包括计算机存储介质和通信介质,该通信介质包括有助于将计算机程序从一个位置传送到另一个位置的任何介质。存储介质可以是能够被通用或专用计算机访问的任何可用介质。作为例子而非限制性的,该计 算机可读介质可以包括RAM、ROM、EEPROM、CD-ROM或其它光盘存储设备、磁盘存储设备或其它磁性存储设备,或者是可以用于携带或存储形式为指令或数据结构的所需程序代码并且能够被通用或专用计算机或者通用或专用处理器访问的任何其它介质。此外,任何连接都可以适当地称为计算机可读介质。例如,如果使用同轴线缆、光纤线缆、双绞线、数字用户线路(DSL)或诸如红外线、无线电和微波的无线技术来从网站、服务器或其它远程源发送软件,则上述同轴线缆、光纤线缆、双绞线、DSL或诸如红外线、无线电和微波的无线技术均包括在介质的定义。如这里所使用的,磁盘和光盘包括压缩盘(CD)、激光盘、光盘、数字多功能盘(DVD)、软盘、蓝光盘,其中磁盘通常磁性地再现数据,而光盘利用激光光学地再现数据。上述内容的组合也应当包括在计算机可读介质的范围内。In one or more exemplary designs, the functions described may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions can be stored as one or more instructions or codes on a computer-readable medium or transmitted through the computer-readable medium. Computer-readable media include computer storage media and communication media, including any media that facilitates the transfer of a computer program from one location to another location. A storage medium may be any available medium that can be accessed by a general-purpose or special-purpose computer. By way of example and not limitation, the computer-readable medium may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage devices, magnetic disk storage devices or other magnetic storage devices, or may be used to carry or store instructions in the form of Or any other medium that can be accessed by a general-purpose or special-purpose computer or general-purpose or special-purpose processor. Also, any connection is properly termed a computer-readable medium. For example, if you use coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave to send software from a website, server, or other remote source, the above-mentioned coaxial cable Cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are all included in the definition of media. As used herein, magnetic disks and optical disks include compact disks (CDs), laser disks, optical disks, digital versatile disks (DVD), floppy disks, and Blu-ray disks. Disks usually reproduce data magnetically, while optical disks use lasers to optically reproduce data. . Combinations of the above content should also be included in the scope of computer-readable media.
应当理解的是,在本文中使用的,除非上下文清楚地支持例外情况,单数形式“一个”旨在也包括复数形式。还应当理解的是,在本文中使用的“和/或”是指包括一个或者一个以上相关联地列出的项目的任意和所有可能组合。It should be understood that as used herein, unless the context clearly supports exceptions, the singular form "a" is intended to also include the plural form. It should also be understood that "and/or" as used herein refers to any and all possible combinations including one or more items listed in association.
上述本发明实施例公开实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the disclosed embodiments of the foregoing embodiments of the present invention are only for description, and do not represent the superiority or inferiority of the embodiments.
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器、磁盘或光盘等。A person of ordinary skill in the art can understand that all or part of the steps in the above embodiments can be implemented by hardware, or by a program to instruct relevant hardware. The program can be stored in a computer-readable storage medium. The storage medium mentioned can be a read-only memory, a magnetic disk or an optical disk, etc.
上述实施例是实施方式的可能示例,并且仅仅为了清楚理解本发明的原理而提出。所属领域的普通技术人员应当理解:以上任何实施例的讨论仅为示例性的,并非旨在暗示本发明实施例公开的范围(包括权利要求)被限于这些例子;在本发明实施例的思路下,以上实施例或者不同实施例 中的技术特征之间也可以进行组合,并存在如上所述的本发明实施例的不同方面的许多其它变化,为了简明它们没有在细节中提供。因此,凡在本发明实施例的精神和原则之内,所做的任何省略、修改、等同替换、改进等,均应包含在本发明实施例的保护范围之内。The above-mentioned embodiments are possible examples of implementations, and are presented only for a clear understanding of the principle of the present invention. Those of ordinary skill in the art should understand that the discussion of any of the above embodiments is only exemplary, and is not intended to imply that the scope of disclosure (including the claims) of the embodiments of the present invention is limited to these examples; under the idea of the embodiments of the present invention The above embodiments or the technical features in different embodiments can also be combined, and there are many other changes in different aspects of the embodiments of the present invention as described above, which are not provided in the details for the sake of brevity. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the embodiments of the present invention should be included in the protection scope of the embodiments of the present invention.

Claims (10)

  1. 一种提升数据库一体机执行效率的方法,其特征在于,包括以下步骤:A method for improving the execution efficiency of a database integrated machine is characterized in that it comprises the following steps:
    筛选出存储节点中的每一个存储单元中的存储数据的最大值和最小值,并将所述最大值和最小值作为区间端点进行存储;Filter out the maximum value and minimum value of the stored data in each storage unit in the storage node, and store the maximum value and minimum value as the interval endpoints;
    响应于用户进行数据查询,在所述存储节点的内存中查找所述数据所位于的相应的所述存储单元的最大值和最小值区间;In response to a user's data query, search the memory of the storage node for the corresponding maximum and minimum interval of the storage unit where the data is located;
    响应于未在所述内存中查找到对应的区间而进一步依次到各个存储单元中进行区间查找,并在所述查找到的区间相对应的存储单元中进一步查询所述数据;In response to not finding the corresponding interval in the memory, further searching for the interval in each storage unit in turn, and further querying the data in the storage unit corresponding to the found interval;
    基于查询次数将所述查找到的区间相对应的存储单元的信息与其存储数据的最大值和最小值区间保存到所述内存中。Based on the number of queries, the information of the storage unit corresponding to the found interval and the maximum and minimum interval of its stored data are stored in the memory.
  2. 根据权利要求1所述的方法,其特征在于,筛选出存储节点中的每一个存储单元中的存储数据的最大值和最小值,并将所述最大值和最小值作为区间端点进行存储包括:The method according to claim 1, wherein the filtering out the maximum value and the minimum value of the stored data in each storage unit in the storage node, and storing the maximum value and the minimum value as the interval endpoints comprises:
    对存储节点中的每一个存储单元中的每一个数据进行哈希计算,以筛选出所述每一个存储单元中进行哈希计算后的最大值和最小值并将所述最大值和最小值作为区间端点进行存储。Perform hash calculation on each data in each storage unit in the storage node to filter out the maximum and minimum values after hash calculation in each storage unit, and use the maximum and minimum values as The end points of the interval are stored.
  3. 根据权利要求2所述的方法,其特征在于,响应于用户进行数据查询,在所述存储节点的内存中查找所述数据所位于的相应的所述存储单元的最大值和最小值区间包括:The method according to claim 2, wherein, in response to a user's data query, searching the memory of the storage node for the corresponding maximum and minimum interval of the storage unit where the data is located comprises:
    将要查询的所述数据进行哈希计算,并将所述哈希计算后的数据在所述存储节点的内存中查找对应的最大值和最小值区间。Perform a hash calculation on the data to be queried, and search for the corresponding maximum and minimum interval in the memory of the storage node for the hashed data.
  4. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    响应于所述存储节点中的存储单元有数据更新,重新筛选所述存储单元 存储数据的最大值和最小值,并根据筛选结果更新所述存储的最大值和最小值区间。In response to the data update of the storage unit in the storage node, re-screen the maximum and minimum values of the stored data of the storage unit, and update the stored maximum and minimum interval according to the screening result.
  5. 根据权利要求1所述的方法,其特征在于,将所述查找到的区间相对应的存储单元的信息与其存储数据的最大值和最小值区间保存到所述内存中包括:The method according to claim 1, wherein storing the information of the storage unit corresponding to the found interval and the maximum and minimum interval of its stored data in the memory comprises:
    在所述内存中以哈希表的形式保存所述存储单元的信息与其存储数据的最大值和最小值区间、以及所述最大值和最小值区间与所述存储单元信息的对应关系。The information of the storage unit and the maximum and minimum interval of the stored data and the correspondence relationship between the maximum and minimum interval and the information of the storage unit are stored in the memory in the form of a hash table.
  6. 根据权利要求1所述的方法,其特征在于,基于查询次数将所述查找到的区间相对应的存储单元的信息与其存储数据的最大值和最小值区间保存到所述内存中包括:The method according to claim 1, wherein storing the information of the storage unit corresponding to the found interval and the maximum and minimum interval of its stored data in the memory based on the number of queries comprises:
    响应于未在所述内存中查找到对应的区间并且所述内存中的存储空间达到阈值上限,进一步到所述存储单元中进行区间查找,响应于查找到的对应的存储单元在所述存储节点数据库中记录的查询次数大于所述内存中存储的存储单元中在所述数据库中记录的查询次数最少的所述存储单元的查询次数,而将所述查找到的对应的存储单元信息及其区间值替换所述内存中存储的所述查询次数最少的存储单元。In response to not finding the corresponding interval in the memory and the storage space in the memory reaches the upper threshold value, the interval search is further performed in the storage unit, and in response to the found corresponding storage unit in the storage node The number of queries recorded in the database is greater than the number of queries of the storage unit that has the least number of queries recorded in the database among the storage units stored in the memory, and the corresponding storage unit information found and its interval are compared The value replaces the storage unit with the least number of queries stored in the memory.
  7. 根据权利要求1所述的方法,其特征在于,所述方法适用于K-DB数据库一体机。The method according to claim 1, wherein the method is applicable to a K-DB database integrated machine.
  8. 一种提升数据库一体机执行效率的设备,其特征在于,包括:A device for improving the execution efficiency of a database integrated machine, which is characterized in that it includes:
    数据计算模块,配置为筛选出存储节点中的每一个存储单元中的存储数据的最大值和最小值,并将所述最大值和最小值作为区间端点进行存储;The data calculation module is configured to filter out the maximum value and the minimum value of the stored data in each storage unit in the storage node, and store the maximum value and the minimum value as the interval endpoints;
    内存响应模块,配置为响应于用户进行数据查询,在所述存储节点的内存中查找所述数据所位于的相应的所述存储单元的最大值和最小值区间;A memory response module, configured to, in response to a user's data query, search for the corresponding maximum and minimum interval of the storage unit where the data is located in the memory of the storage node;
    存储单元响应模块,配置为响应于未在所述内存中查找到对应的区间而进一步依次到各个存储单元中进行区间查找,并在所述查找到的区间相对应的存储单元中进一步查询所述数据;The storage unit response module is configured to, in response to failing to find the corresponding interval in the memory, to further search for the interval in each storage unit in turn, and to further inquire the storage unit corresponding to the found interval data;
    内存数据更新模块,配置为基于查询次数将所述查找到的区间相对应的存储单元的信息与其存储数据的最大值和最小值区间保存到所述内存中。The memory data update module is configured to save the information of the storage unit corresponding to the found interval and the maximum and minimum interval of its stored data in the memory based on the number of queries.
  9. 一种提升数据库一体机执行效率的装置,其特征在于,包括:A device for improving the execution efficiency of a database integrated machine, which is characterized in that it comprises:
    至少一个处理器;和At least one processor; and
    存储器,所述存储器存储有处理器可运行的程序代码,所述程序代码在被处理器运行时实施如权利要求1-7中任一项所述的方法。A memory, the memory stores a program code that can be run by the processor, and the program code implements the method according to any one of claims 1-7 when the program code is run by the processor.
  10. 一种计算机介质,其特征在于,包括可被处理器执行的程序代码,所述程序代码在被处理器执行时实施如权利要求1-7中任一项所述的方法。A computer medium, characterized by comprising a program code executable by a processor, the program code when being executed by the processor implements the method according to any one of claims 1-7.
PCT/CN2021/070568 2020-03-13 2021-01-07 Method, device and apparatus for improving execution efficiency of database appliance, and medium WO2021179782A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010174055.X 2020-03-13
CN202010174055.XA CN111400346A (en) 2020-03-13 2020-03-13 Method, equipment, device and medium for improving execution efficiency of database all-in-one machine

Publications (1)

Publication Number Publication Date
WO2021179782A1 true WO2021179782A1 (en) 2021-09-16

Family

ID=71432466

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/070568 WO2021179782A1 (en) 2020-03-13 2021-01-07 Method, device and apparatus for improving execution efficiency of database appliance, and medium

Country Status (2)

Country Link
CN (1) CN111400346A (en)
WO (1) WO2021179782A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111400346A (en) * 2020-03-13 2020-07-10 苏州浪潮智能科技有限公司 Method, equipment, device and medium for improving execution efficiency of database all-in-one machine
CN112307059B (en) * 2020-10-30 2023-11-28 腾讯科技(深圳)有限公司 Ranking list management method and device, computer equipment and storage medium
CN112232321B (en) * 2020-12-14 2021-03-19 西南交通大学 Vibration data interference noise reduction method, device and equipment and readable storage medium
CN113204564B (en) * 2021-05-20 2023-02-28 山东英信计算机技术有限公司 Database high-frequency SQL query method, system and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104834650A (en) * 2014-02-12 2015-08-12 清华大学 Method and system for generating effective query tasks
CN105550225A (en) * 2015-12-07 2016-05-04 百度在线网络技术(北京)有限公司 Index construction method and query method and apparatus
US9390115B2 (en) * 2013-10-11 2016-07-12 Oracle International Corporation Tables with unlimited number of sparse columns and techniques for an efficient implementation
CN106844703A (en) * 2017-02-04 2017-06-13 中国人民大学 A kind of internal storage data warehouse query processing implementation method of data base-oriented all-in-one
CN107577436A (en) * 2017-09-18 2018-01-12 杭州时趣信息技术有限公司 A kind of date storage method and device
CN108287868A (en) * 2017-12-19 2018-07-17 北京国电通网络技术有限公司 A kind of data base querying, data block division methods and device
CN111400346A (en) * 2020-03-13 2020-07-10 苏州浪潮智能科技有限公司 Method, equipment, device and medium for improving execution efficiency of database all-in-one machine

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9390115B2 (en) * 2013-10-11 2016-07-12 Oracle International Corporation Tables with unlimited number of sparse columns and techniques for an efficient implementation
CN104834650A (en) * 2014-02-12 2015-08-12 清华大学 Method and system for generating effective query tasks
CN105550225A (en) * 2015-12-07 2016-05-04 百度在线网络技术(北京)有限公司 Index construction method and query method and apparatus
CN106844703A (en) * 2017-02-04 2017-06-13 中国人民大学 A kind of internal storage data warehouse query processing implementation method of data base-oriented all-in-one
CN107577436A (en) * 2017-09-18 2018-01-12 杭州时趣信息技术有限公司 A kind of date storage method and device
CN108287868A (en) * 2017-12-19 2018-07-17 北京国电通网络技术有限公司 A kind of data base querying, data block division methods and device
CN111400346A (en) * 2020-03-13 2020-07-10 苏州浪潮智能科技有限公司 Method, equipment, device and medium for improving execution efficiency of database all-in-one machine

Also Published As

Publication number Publication date
CN111400346A (en) 2020-07-10

Similar Documents

Publication Publication Date Title
WO2021179782A1 (en) Method, device and apparatus for improving execution efficiency of database appliance, and medium
US11080204B2 (en) Latchless, non-blocking dynamically resizable segmented hash index
US10346432B2 (en) Compaction policy
US10296611B2 (en) Optimized rollover processes to accommodate a change in value identifier bit size and related system reload processes
CN108846133B (en) Block chain storage structure based on B-M tree, B-M tree establishment algorithm and search algorithm
US11269956B2 (en) Systems and methods of managing an index
CN105574093A (en) Method for establishing index in HDFS based spark-sql big data processing system
CN105205082A (en) Method and system for processing file storage in HDFS
US8812489B2 (en) Swapping expected and candidate affinities in a query plan cache
CN110134335B (en) RDF data management method and device based on key value pair and storage medium
Von der Weth et al. Multiterm keyword search in NoSQL systems
CN111352589B (en) Distributed storage method, device, equipment and readable medium
CN115952195A (en) Block chain data tracing query optimization method
CN109408539B (en) Data operation method, device, server and storage medium
WO2016177027A1 (en) Batch data query method and device
CN108280123B (en) HBase column polymerization method
US11500943B2 (en) Method and system for cached early-binding document search
US10657126B2 (en) Meta-join and meta-group-by indexes for big data
US10762139B1 (en) Method and system for managing a document search index
US10289710B2 (en) Method for modifying root node, and modification apparatus
CN112487027B (en) Efficient data query implementation method based on block chain electronic transaction
CN115203211A (en) Unique hash sequence number generation method and system
CN111159175B (en) Incomplete database Skyline query method based on index
CN111538804A (en) HBase-based graph data processing method and equipment
CN113946580B (en) Massive heterogeneous log data retrieval middleware

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: 21768154

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: 21768154

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 21768154

Country of ref document: EP

Kind code of ref document: A1