IP Library Granted Patent US 10,324,933
Granted Patent B2
US 10,324,933 · App. 15/221,307 · Granted Jun 18, 2019

Technique for processing query in database management system

Inventors: Yongkwon Kim (Gyeonggi-do, KR); Youngjae Choi (Gyeonggi-do, KR); Bongchae Kang (Jeju-do, KR); Yeseul Kim (Gyeongsangbuk-do, KR)
Assignee: TmaxData Co., Ltd.
G06F16/24561G06F16/2282
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 10,324,933
App. No.
15/221,307
Granted
Jun 18, 2019
Kind
B2
Abstract

Disclosed is a method for processing a query in a database management system (DBMS). The method includes: receiving a main query including a subquery; identifying an indication to independently manage a processing result for the subquery in the received main query by parsing the received main query—the indication including storing type information for the processing result of the subquery; determining a storing type for independently storing the processing result for the subquery based on the indication; and storing the processing result for the subquery independently from the processing result for the main query while performing processing for the main query according to the determined storing type.

Claims (33)

1. A method for processing a query in a database management system (DBMS), the method comprising:

receiving a main query including a subquery;

identifying an indication to independently manage a processing result of the subquery in the received main query by parsing the received main query—the indication including storing type information for the processing result of the subquery;

determining a storing type for independently storing the processing result of the subquery based on the indication, wherein when the determined storing type is determined to be an external storing type, an external file storage in which the processing result of the subquery is to be stored in a file form is determined, an external table connected to the determined external file storage in a memory is generated, meta data for reading a file stored in the external file storage is generated, and the generated meta data is stored in the generated external table;

processing the received main query and the subquery; and

storing the processing result of the subquery independently from a processing result of the received main query during the processing of the received main query according to the determined storing type.

2. The method of claim 1 , wherein the received main query includes a WITH clause, and the subquery is included in the WITH clause.

3. The method of claim 2 , wherein the indication is included in a statement expressed outside the subquery in the WITH clause.

4. The method of claim 2 , further comprising:

generating information for requesting whether the subquery is to move to the WITH clause when it is determined that the subquery included in the received main query is not included in the WITH clause or when the received main query including the subquery does not have the WITH clause by parsing the received main query.

5. The method of claim 1 , wherein the indication further includes external file storage position information for the processing result of the subquery and file name information for the processing result of the subquery, and the external file storage is determined based on the external file storage position information and the meta data is generated based on the external file storage position information and the file name information.

6. The method of claim 1 , further comprising:

when the determined storing type is determined to be an internal storing type,

generating in a memory a read-only temporary table in which the processing result of the subquery is to be stored in a table form.

7. The method of claim 6 , wherein the indication further includes at least one of internal file storage position information for the processing result of the subquery and table name information for the processing result of the subquery.

8. The method of claim 1 , further comprising:

in order to permit the processing result of the subquery to be reused,

generating a meta table for storing at least one of storage position information of the subquery, structured query language (SQL) statement information of the subquery, time information when the processing result of the subquery is generated, and snapshot information for the processing result of the subquery.

9. The method of claim 1 , wherein the storing of the processing result of the subquery independently from the processing result for the received main query includes:

generating, in a memory, a meta table for independently storing an intermediate result for the processing of the subquery, and

storing the intermediate result for the processing of the subquery in the generated meta table.

10. A non-transitory computer-readable recording medium including a computer program configured to perform operations for query processing in a database management system (DBMS) when the computer program is executed by one or more processors, the operations comprising:

receiving a main query including a subquery;

identifying an indication to independently manage a processing result of the subquery in the received main query by parsing the received main query—the indication including storing type information for the processing result of the subquery;

determining a storing type for independently storing the processing result of the subquery based on the indication, wherein when the determined storing type is determined to be an external storing type, an external file storage in which the processing result of the subquery is to be stored in a file form is determined, an external table connected to the determined external file storage in a memory is generated, meta data for reading a file stored in the external file storage is generated, and the generated meta data is stored in the generated external table;

processing the received main query and the subquery; and

storing the processing result of the subquery independently from a processing result of the received main query during the processing of the received main query according to the determined storing type.

11. A server for processing a query in a database management system (DBMS), the server comprising:

a communicator configured to receive a main query including a subquery;

a query parser configured to identify an indication to independently manage a processing result of the subquery in the received main query by parsing the received main query—the indication including storing type information for the processing result of the subquery;

a storing type determiner configured to determine a storing type for independently storing the processing result of the subquery based on the indication, wherein when the determined storing type is determined to be an external storing type, an external file storage in which the processing result of the subquery is to be stored in a file form is determined, an external table connected to the determined external file storage in a memory is generated, meta data for reading a file stored in the external file storage is generated, and the generated meta data is stored in the generated external table;

an operation executor configured to process the received main query and the subquery; and

a storer configured to store the processing result of the subquery independently from a processing result of the received main query during the processing of the received main query according to the determined storing type.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jul 12, 2022
From: TMAXDATACO., LTD. (ALSO KNOWN AS TMAXDATA CO., LTD. AND TMAX DATA CO., LTD.)
To: TMAXTIBERO CO., LTD.
Reel/Frame 060635/0387 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jul 27, 2016
From: KIM, YONGKWON; CHOI, YOUNGJAE; KANG, BONGCHAE; KIM, YESEUL
To: TMAXDATA CO., LTD.
Reel/Frame 039274/0218 →
Priority Claims (1)
KR 10-2016-0091201 · Jul 19, 2016 · national
Continuity (1)
Related Publication 20180025058A1 · Jan 25, 2018