Patent ID: 7912851

Claim:
A method comprising: finding a correlation between a first statement and a previous statement, wherein the finding the correlation further comprises finding a host variable in the previous statement in a history that matches a host variable in the first statement, wherein first data supplied for the host variable in the first statement matches previous data associated with the host variable in the previous statement, wherein the host variable in the previous statement and the host variable in the first statement comprise a variable in a host language that is set to a plurality of values in succession and submitted to a database; predicting a second statement based on the previous statement, wherein the predicting further comprises finding the previous statement in the history and finding the second statement that was next in time following the previous statement in the history, wherein the previous statement and the second statement comprise commands that were previously executed against the database; and retrieving at least one page from the database based on the second statement, wherein the retrieving further comprises executing the second statement against the database.