13. A non-transitory, computer-readable storage medium embodying computer program code, the computer program code comprising computer executable instructions that, when executed by a processor, cause a system to perform operations comprising: performing a region division structured query language (SQL) statement rewrite operation on the SQL statement, the region division SQL statement rewrite operation identifying a plurality of SQL statement regions; specifying a rewrite focus priority for a particular SQL statement region in the plurality of SQL statement regions, the rewrite focus priority providing an indication of a particular amount of resource to be expended on the particular SQL statement region during an optimization operation on the particular SQL statement region, the rewrite focus priority indicating that the optimization operation is to be performed on the particular SQL statement region before other SQLs statement region in the plurality of SQL statement regions; performing a region preferential SQL statement optimization operation on the particular SQL statement region based on the rewrite focus priority indicating that the optimization operation is to be performed on the particular SQL statement region before other SQLs statement region in the plurality of SQL statement regions and based upon the indication of the particular amount of resource to be expended on the particular SQL statement region, the SQL statement optimization operation recursively performing a rewrite optimization on the particular SQL statement region according to the specified rewrite focus priority.
13. A non-transitory, computer-readable storage medium embodying computer program code, the computer program code comprising computer executable instructions that, when executed by a processor, cause a system to perform operations comprising: performing a region division structured query language (SQL) statement rewrite operation on the SQL statement, the region division SQL statement rewrite operation identifying a plurality of SQL statement regions; specifying a rewrite focus priority for a particular SQL statement region in the plurality of SQL statement regions, the rewrite focus priority providing an indication of a particular amount of resource to be expended on the particular SQL statement region during an optimization operation on the particular SQL statement region, the rewrite focus priority indicating that the optimization operation is to be performed on the particular SQL statement region before other SQLs statement region in the plurality of SQL statement regions; performing a region preferential SQL statement optimization operation on the particular SQL statement region based on the rewrite focus priority indicating that the optimization operation is to be performed on the particular SQL statement region before other SQLs statement region in the plurality of SQL statement regions and based upon the indication of the particular amount of resource to be expended on the particular SQL statement region, the SQL statement optimization operation recursively performing a rewrite optimization on the particular SQL statement region according to the specified rewrite focus priority. 15. The non-transitory, computer-readable storage medium of claim 13 , wherein: the plurality of SQL statement regions comprise boundaries defining a smaller portion of the SQL statement, the boundaries being applicable to a certain type of rewrite operation.