hi, i want to know which approach is better to saving Webpage content to database for caching?
- Using ntext data-type and save content as flat string
- Using ntext, but compress content and then save
- Using varbinary(MAX) to save content (how i can convert flat string to binary? ;-))
- An other approach which you are suggest to me
UPDATE
in more depth i have many table (URLs, Caches, ParsedContents, Words, Hits and etc) which for each url in URLs table i'm sending request and save response into caches table. this is Downloader (URLResolver of Google) section of my engine. then indexer section act was to perform parsing and etc tasks which associated with this. and Compress/Decompress performs only when new content goes to be caching or parsing