Which file types are worth compressing (zipping) for remote storage? For which of them the compresse

Posted by user193655 on Stack Overflow See other posts from Stack Overflow or by user193655
Published on 2010-05-25T07:34:56Z Indexed on 2010/05/25 7:51 UTC
Read the original article Hit count: 175

I am storing documents in sql server in varbinary(max) fileds, I use filestream optionally when a user has:

(DB_Size + Docs_Size) ~> 0.8 * ExpressEdition_Max_DB_Size

I am currently zipping all the files, anyway this is done because the Document Read/Write work was developed 10 years ago where Storage was more expensive than now.

Many files when zipped are almost as big as the original (a zipped pdf is about 95% of original size). And anyway unzipping has some overhead, that becomes twice when I need also to "Check-in"/Update the file because I need to zip it.

So I was thinking of giving to the users the option to choose whether the file type will be zipped or not by providing some meaningful default values. For my experience I would impose the following rules:

1) zip by default: txt, bmp, rtf

2) do not zip by default: jpg, jpeg, Microsoft Office files, Open Office files, png, tif, tiff

Could you suggest other file types chosen among the most common or comment on the ones I listed here?

© Stack Overflow or respective owner

Related posts about sql-server

Related posts about compression