I have a some tables(Table A and Table B) with a BIGINT with IDENTITY specification as primary key. In those tables I have 2 VARBINARY(MAX) columns. Updates and deletes are very rare.
They have with almost the same row count, Table B a bit less but have significant more data in the VARBINARY(MAX) columns.
I was surprised to see that the storage used by PK in Table B was much higher than the storage used by PK in Table A. Doing some reading, correct me if I am wrong, on the subject clarified that is has some thing to do with the max row size around 8k. So the there is some paging going on with a byte reference which is then included in the index. Hence the larger storage used by PK in Table B. It is around 30 percent of the total size of the DB. I was of the assumption that only the BIGINT was part of the index.
My question is whether there is a workaround for that? Any designs, techniques or hacks that can prevent this?
Regards
Vilma