between two terms. Each time a document is inserted, the “doc_term_ass” has to be updated. After this the unnormed document-vector length has to be calculated once and stored for performance reasons in table “document” using the following view as data source: