Abstract: A tuning apparatus and a tuning method are provided, which make it possible to provide higher-accuracy searching tuning, while still reducing work load for the tuning executed every query language used to operate the relational database, and provide optimum indexes considering effect of the performance of commands not being processed for the tuning. Commands issued using query languages such as SQL are aggregated as acquisition patterns each consisting of search condition information and search method information which are for acquiring search results of data from a relational database. Predetermined execution information provided when the issued commands are executed is made to correspond to the acquisition patterns, thereby providing tuning information to each of the acquisition patterns.