Skip to content

Commit

Permalink
Removes FixedLengthColumn (for now) since it does not yield any benef…
Browse files Browse the repository at this point in the history
…its.
  • Loading branch information
Ralph Gasser committed Mar 18, 2024
1 parent 5fbe059 commit e489215
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit e489215

Please sign in to comment.