When creating a new (file-based) translation memory, SDL Trados Studio creates a database file in which all translation units are stored. The translation memory also stores structural and context information to link all the different segments and their position in a document. This allows the tool to select the most relevant translation memory segment.