October 11, 2017 at 10:10 am
Hi, is there a tried and true generic script available that I can run that will go through each database I have, and go through and tell me about the savings of compression if applied, and then go forth and compress all compressible columns and deal with the alter statements and indexes? Thanks
October 11, 2017 at 1:13 pm
Tons. See the following link, which will also teach another essential skill in the process.
--Jeff Moden
Change is inevitable... Change for the better is not.
October 11, 2017 at 1:53 pm
This is only the estimate, I'm not only wanting to see that, but more importantly actually compress columns in the tables in the databases if not locked
October 11, 2017 at 2:09 pm
Why couldn't you just use the same method played against a table of results generated by the first run to control which columns get compressed?
Another search will scare up code to compress all tables in a database.
--Jeff Moden
Change is inevitable... Change for the better is not.
October 11, 2017 at 2:24 pm
I was able to find a script I was looking for to do the alter statements for the compressable columns and indexes on this website, I'm testing it out on a small test DB. Thanks
October 11, 2017 at 2:35 pm
Great. My next question is, have you actually tested in your environment to see if compression is actually going to help? On the few large tables I've tested in my work environment, I've found that compression actually slowed things down.
--Jeff Moden
Change is inevitable... Change for the better is not.
October 12, 2017 at 8:19 am
Jeff Moden - Wednesday, October 11, 2017 2:35 PMGreat. My next question is, have you actually tested in your environment to see if compression is actually going to help? On the few large tables I've tested in my work environment, I've found that compression actually slowed things down.
This is my next step, I hear that it can make no difference or harm performance, and I'm not hurting so much on space as I need a performance boost and don't want to compress just for the sake of compressing.
October 12, 2017 at 10:59 am
quinn.jay - Thursday, October 12, 2017 8:19 AMJeff Moden - Wednesday, October 11, 2017 2:35 PMGreat. My next question is, have you actually tested in your environment to see if compression is actually going to help? On the few large tables I've tested in my work environment, I've found that compression actually slowed things down.This is my next step, I hear that it can make no difference or harm performance, and I'm not hurting so much on space as I need a performance boost and don't want to compress just for the sake of compressing.
Sounds like you have a good plan. Thanks for the feedback.
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 8 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic. Login to reply