1. A system comprising: one or more processors; and program code including a query optimizer, the program code configured to be executed by the one or more processors to process a database query, the program code configured to: structure a database to have a plurality of database tables having an indexes associated with one or more rows and having one or more index keys with index key values associated with particular rows of the one or more rows, wherein the indexes are organized as a search tree; and delete rows in the database tables for database maintenance in real-time by deleting index keys of the one or more rows in the database tables, wherein: the database is managed by deleting one or more index keys in the database tables, the deleting the index keys of the one or more index keys in the database further includes deleting index keys of the one or more index keys in the one or more indexes related to the rows of the one or more rows in an order such that corresponding rows of the one or more rows are deleted based on a comparatively close relationship to the one or more index keys, and the comparatively close relationship is a minimum number of jumps necessary to get from a row associated with a near key to a row associated with a search key.