From e48921582d8c307fd62a4e2ddd5d458a0dc6df28 Mon Sep 17 00:00:00 2001 From: Ralph Gasser Date: Mon, 18 Mar 2024 14:39:17 +0100 Subject: [PATCH] Removes FixedLengthColumn (for now) since it does not yield any benefits. --- .../org/vitrivr/cottontail/dbms/entity/DefaultEntity.kt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/cottontaildb-dbms/src/main/kotlin/org/vitrivr/cottontail/dbms/entity/DefaultEntity.kt b/cottontaildb-dbms/src/main/kotlin/org/vitrivr/cottontail/dbms/entity/DefaultEntity.kt index 64635aa9f..b5de62385 100644 --- a/cottontaildb-dbms/src/main/kotlin/org/vitrivr/cottontail/dbms/entity/DefaultEntity.kt +++ b/cottontaildb-dbms/src/main/kotlin/org/vitrivr/cottontail/dbms/entity/DefaultEntity.kt @@ -102,11 +102,7 @@ class DefaultEntity(override val name: Name.EntityName, override val parent: Def ColumnMetadata.fromEntry(it) } ?: throw DatabaseException.DataCorruptionException("Failed to load specified column $columnName for entity ${this@DefaultEntity.name}") val columnDef = ColumnDef(columnName, columnEntry.type, columnEntry.nullable, columnEntry.primary, columnEntry.autoIncrement) - if (columnDef.type is Types.String || columnDef.type is Types.ByteString) { - this.columns[columnName] = VariableLengthColumn(columnDef, this@DefaultEntity) - } else { - this.columns[columnName] = FixedLengthColumn(columnDef, this@DefaultEntity, columnEntry.compression) - } + this.columns[columnName] = VariableLengthColumn(columnDef, this@DefaultEntity) } /* Load a map of indexes. This map can be kept in memory for the duration of the transaction, because Transaction works with a fixed snapshot. */