Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for generating indexes for tables in database

A database and table generation technology, applied in the field of database management, can solve problems such as reduction, achieve the effect of simplifying execution steps and improving response efficiency

Active Publication Date: 2019-07-09
IBM CORP
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, it should be noted that on the one hand, indexes can improve the efficiency of data query, on the other hand, too many indexes will greatly reduce the efficiency of other operations (such as adding, deleting, etc.) on the data table
Therefore, in database management, it is necessary to control the number of indexes to prevent the modification efficiency from being too low

Method used

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

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for generating indexes for tables in database
  • Method and device for generating indexes for tables in database
  • Method and device for generating indexes for tables in database

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020] Preferred embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although preferred embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.

[0021] figure 1 A block diagram of an exemplary computer system / server 12 suitable for use in implementing embodiments of the invention is shown. figure 1 The computer system / server 12 shown is only an example and should not impose any limitation on the function and scope of use of the embodiments of the present invention.

[0022] Such as figure 1 As shown, computer system / server 12 takes the form of a general purpose computing device. ...

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

PUM

No PUM Login to View More

Abstract

A method and device for generating an index for a table in a database are provided. Provided is a method for generating an index for a table in a database, including: in response to receiving a query statement for querying the table, searching the table for one or more rows satisfying the query condition in the query statement; based on a or a plurality of row identifiers to build a result list; and generate an index for the query statement, the index includes information associated with the query condition and the result list. There is also provided a method for operating on a table in a database based on an index, comprising: parsing a query condition and a result list from the index; in response to receiving a second statement operating on the table, determining that the query condition matches at least a portion of the second condition in the second statement; and executing the second statement based on one or more rows in the table indicated by the identifier in the result list.

Description

technical field [0001] Various embodiments of the present invention relate to database management, and more specifically, to a method and device for generating an index for a table in a database. Background technique [0002] With the development of data storage technology, the storage capacity of the database system has been significantly improved. At present, hundreds of thousands or even more rows of records can be stored in a table of the database. In general, the efficiency of a query against a table in a database is largely determined by the time it takes to scan the table. While the size of the data table is growing rapidly, how to improve the response efficiency of the database to data query statements and other data processing statements has become a research hotspot. [0003] Indexes help to improve the efficiency of data query statements, and technical solutions for establishing indexes in databases have been proposed so far. However, it should be noted that on ...

Claims

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

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F16/901G06F16/9032
CPCG06F16/2228G06F16/2272G06F16/22G06F16/2255
Inventor 李兆伟李越许玲韦东杰
Owner IBM CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products