Patent ID: 8661022

Claim:
A method using a server comprising a processor and a memory for managing a database, the method comprising: receiving, from a client, a factorized character string generated from a query, the factorized character string being generated by converting at least one execution value of the character string into a desired factor; determining whether the factorized character string is stored in the memory; transmitting an execution plan identifier matching the factorized character string stored in the memory to the client in response to the factorized character string being stored in the memory, or generating and transmitting an execution plan identifier with respect to an execution plan of the factorized character string to the client in response to the factorized character string not being stored in the memory; receiving a query request comprising the execution plan identifier and an execution value list included in the query from the client; and determining whether a query result identifier matching the query request is stored in the memory; and providing, from the server, a query result obtained using the query request to the client, the providing of the query result obtains the query result corresponding to the query result identifier from the memory or a disk and provides the query result to the client in response to the query result identifier matching the query request being stored, and the providing of the query result provides, to the client, the query result obtained by executing the execution plan corresponding to the execution plan identifier using the execution value list in response to the query result identifier matching the query request not being stored, and the execution plan corresponding to the execution plan identifier is obtained directly from the memory or obtained by decoding an execution plan in a stream format stored in the disk in response to the query result identifier matching the query request not being stored.