1. A method for providing cost data for tuning a size of a query cache in a database system, the method comprising: receiving a query; checking the query cache to determine whether a cache hit or a cache miss occurs; and determining a processing time saved by an avoidance of the cache miss and a cache size needed to avoid the cache miss, when the cache miss occurs.