1. A method of creating a graph database containing a plurality of tuples, each tuple containing two or more tuple parts, the method comprising: determining a datatype of each tuple part of the plurality of tuples; encoding each tuple part into a unique part identifier of a fixed set of bytes; replacing content for certain of the datatypes with unique hashcodes; storing content for certain other of the datatypes with immediate values in the unique part identifier, wherein the immediate values retain a sort order of the content; and storing the encoded content into a transaction log file that is configured to be indexed one or more times by one or more respective sort functions.