1. A system for determining a query execution plan based on transaction state, the system comprising: A computing device having a processor and a memory; wherein the memory stores program instructions, the program instructions executable by the processor cause the system to: determine that a first set of database values in a database table are in a committed transaction state and that a second set of database values in the database table are in an uncommitted transaction state, wherein the determining includes reading a first column value and second column value of a column within an index object, the index object including at least one of the first and second set of database values, the first column value specifying that the at least one of the first set of database values are in a committed transaction state, and the second column value specifying that the at least one of the second set of database values are in an uncommitted transactions state; and in response to the determining, generate a first set of statistics for the first set of database values and generate a second set of statistics for the second set of database values, the first and second set of statistics for use in determining a query execution plan.