Method and system for managing database
First Claim
Patent Images
1. A computer-implemented database-managing method comprising:
- receiving and analyzing, by the computer, a single statement that comprises a fetch request for a record in a database table and an update request for updating at least one column;
generating an execution plan to execute the single statement, the execution plan including a locking time for preventing access to the record while the single statement is processed, the locking time ending once the single statement is processed and before the update request is made permanent;
matching an entry comprised of a record ID and a column ID with a column value corresponding to the column ID included in the entry, and storing the entry and column value matched with each other in a memory;
executing the execution plan by fetching the record in accordance with the fetch request and updating the at least one column in accordance with the update request, the executing including,updating the column value matched with the entry according to the update request,reflecting the column value kept in the memory on the database table in response to a specific condition being satisfied, andupdating a click count of content in the corresponding column; and
presenting the record in accordance with the fetch request.
6 Assignments
0 Petitions
Accused Products
Abstract
A method and system for managing database is disclosed, which is capable of simultaneously performing a data selection procedure and a data click-count update procedure when specific data is selected, the method comprising receiving and analyzing a query in which both a fetch request for a record included in a specific database table and an update request for at least one of columns included in the record are defined together; generating an execution plan to execute the analyzed query; and executing the execution plan by fetching the record and updating at least one of the columns according to the execution plan.
-
Citations
25 Claims
-
1. A computer-implemented database-managing method comprising:
-
receiving and analyzing, by the computer, a single statement that comprises a fetch request for a record in a database table and an update request for updating at least one column; generating an execution plan to execute the single statement, the execution plan including a locking time for preventing access to the record while the single statement is processed, the locking time ending once the single statement is processed and before the update request is made permanent; matching an entry comprised of a record ID and a column ID with a column value corresponding to the column ID included in the entry, and storing the entry and column value matched with each other in a memory; executing the execution plan by fetching the record in accordance with the fetch request and updating the at least one column in accordance with the update request, the executing including, updating the column value matched with the entry according to the update request, reflecting the column value kept in the memory on the database table in response to a specific condition being satisfied, and updating a click count of content in the corresponding column; and presenting the record in accordance with the fetch request. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14)
-
-
15. One or more computer-readable media having stored thereon a computer program that, when executed by one or more processors, causes the one or more processors to perform acts comprising:
-
receiving and analyzing a single statement that comprises a fetch request for a record in a database table and an update request for updating at least one column; generating an execution plan to execute the analyzed statement, the execution plan including a locking time for preventing access to the record while the single statement is processed, the locking time ending once the single statement is processed and before the update request is made permanent; matching an entry comprised of a record ID and a column ID with a column value corresponding to the column ID included in the entry, and storing the entry and column value matched with each other in a memory; executing the execution plan by fetching the record in accordance with the fetch request and updating the at least one column according to the update request, wherein executing the execution plan includes, generating a transaction for updating after fetching the record; updating a click count of content in the corresponding column; updating the value recorded in the column; updating the column value matched with the entry according to the update request, reflecting the column value kept in the memory on the database table in response to a specific condition being satisfied; and completing the transaction after updating, wherein a lock for the database table and record is set during the transaction for updating; and presenting the record in accordance with the fetch request.
-
-
16. A database-managing system comprising:
-
a processor; and a memory including instructions, which when executed by the processor, cause the processor to implement; a query analyzer configured to receive and analyze a single statement that comprises a fetch request for a record in a database table and an update request for updating at least one column; an execution plan generator configured to generate an execution plan to execute the analyzed statement, the generated execution plan including a locking time for preventing access to the record while the single statement is processed, the locking time ending once the single statement is processed and before the update request is made permanent; an entry manager configured to match an entry comprised of a record ID and a column ID with the column value corresponding to the column ID included in the entry, and configured to store the entry and column value matched with each other in a memory; an execution plan executor configured to execute the execution plan by fetching the record in accordance with the fetch request and updating the at least one column according to the update request, and during the updating the execution plan executor is configured to update the column value matched with the entry for the column in the memory, reflect the column value kept in the memory on the database table in response to a determination that a specific condition is satisfied, and update a click count of content in the corresponding column; and a presenter configured to present the record in accordance with the fetch request. - View Dependent Claims (17, 18, 19, 20, 21, 22, 23, 24, 25)
-
Specification