Closed NoisyFlowers closed 5 years ago
I've been thinking about this, and I have a few thoughts.
Questions:
Pros:
Cons:
Additional Cons:
Bytea has a 1GB per entry limit, which is too small, so we would have to use BLOB, but BLOB requires non-standard SQL interface - i.e., doesn't use INSERT
, UPDATE
, etc.
Additional Question: Are there good node libraries for working with BLOB commands?
Additional Con: Presumably, we would no longer archive the original tar, so let's say that we incorrectly think that an upload went through correctly then later realize that there was a problem, there would be no file to restore/reupload from?
We are now more or less committed to doing this because the metadata management benefits are pretty profound. We are researching the merits of BLOB format and any particular hangups that may be associated with it.
Lol... we implemented this a long time ago now... I think as part of 42072e5a503acf2cc4facd64c046178e94b08aae
The loose coupling between the db and the archive directory could lead to problems down the road. For instance, I recently renamed an archive directory after azlibAdd had imported into it, thus breaking the azgs_path links. Look into the pros/cons of moving the tar.gz files into the db.