Data table query method and device, terminal equipment and storage medium
A query method and data table technology, which is applied in the field of database statistics, can solve the problems of scan index occupation and large memory space, and achieve the effects of optimizing overall performance, reducing memory resource occupation, and improving query efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0030] Figure 1A It is a flow chart of the data table query method provided by Embodiment 1 of the present invention. This embodiment is applicable to the case where the data table query device queries the total number of records in a certain data table. The method can be executed by the data table query device, and the data table query device can be realized by software and / or hardware. refer to Figure 1A , the method specifically includes the following steps:
[0031] S110. Receive a query operation on the target data table in the current transaction, and record the query start time when the query operation is received.
[0032] In a specific embodiment of the present invention, a transaction refers to a series of operations in a database, which are either completely executed or not executed at all. Transactions ensure that data-oriented resources are not permanently updated unless all operations within the transactional unit complete successfully. By grouping a set of r...
Embodiment 2
[0086] figure 2 The structural diagram of the data table query device provided by Embodiment 2 of the present invention, this embodiment can be applied to the situation of querying the total number of records of a certain data table in the data table query device, and the device can realize the data table described in any embodiment of the present invention Query method. Specifically, the device includes:
[0087] The query request receiving module 21 is used to receive the query operation for the target data table in the current transaction, and record the query start time when the query operation is received;
[0088] The judging module 22 is used to judge whether there is a modification operation for the target data table within the influence time period from the transaction start time to the query start time of the current transaction; wherein the modification operation includes: adding operation, updating operation and deleting operation;
[0089] Affecting the total n...
Embodiment 3
[0102] image 3 It is a schematic structural diagram of a terminal device provided in Embodiment 3 of the present invention. image 3 A block diagram of an exemplary terminal device suitable for implementing embodiments of the present invention is shown. image 3 The displayed terminal device is only an example, and should not impose any limitation on the functions and application scope of the embodiments of the present invention.
[0103] Such as image 3 As shown, the terminal device may take the form of a general-purpose computing device. The components of the terminal device may include, but are not limited to: one or more processors 31, a storage device 32, and a bus (not shown) connecting different system components (including the storage device 32 and the processor 31).
[0104] Bus refers to one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using an...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com