Dave Stokes: Loading The Titanic Dataset Into PostgreSQL With DBeaver Part 3
stokerpostgresql.blogspot.com·3h
Flag this post

In the previous post, we asked AI to make recommendations to help clean up the data loaded directly from a CSV file. The initial data load for the Name failed because a VARCHAR(64) was estimated to be insufficient to hold the data. But it was not, and a TEXT field was used instead.

So now we want to save some disk space!

The first obvious candidate may seem to be the Name field; a TEXT field can hold up to a gigabyte of data. None of the names is that long. If we switch to VARCHAR, we do not gain space, as both have the exact underlying mechanism in PostgreSQL.

PassengerId

There are only 891 records, so we don’t have to worry about growth. This is a ‘fixed’ list, as no one else is…

Similar Posts

Loading similar posts...