got rid of the hot/cold blob, all blobs are "cold" now

This commit is contained in:
zadam
2023-06-04 22:50:07 +02:00
parent b79631a35d
commit cb9feab7b2
5 changed files with 64 additions and 69 deletions

View File

@@ -892,6 +892,8 @@ function eraseAttachments(attachmentIdsToErase) {
}
function eraseUnusedBlobs() {
// this method is rather defense in depth - in normal operation, the unused blobs should be erased immediately
// after getting unused (handled in entity._setContent())
const unusedBlobIds = sql.getColumn(`
SELECT blobs.blobId
FROM blobs