type OptionalKeys<TType, TKey extends keyof TType> = Omit<TType, TKey> & Partial<Pick<TType, TKey>>
type RequiredKeys<TType, TKey extends keyof TType> = Omit<TType, TKey> & Required<Pick<TType, TKey>>
-- WHAT THIS DOES: | |
-- By default, NULL values take up storage as well. | |
-- Microsoft recommends considering a feature called "sparse columns" that reduces the size of NULL values in that column. | |
-- This only works well for columns with a large amount of NULL values. This script does this process for you. | |
-- DIRECTIONS ON HOW TO USE: | |
-- 1. Simply run the script initially to view all columns in your database that Microsoft recommends could benefit from being a "sparse column" | |
-- 2. Lastly, uncomment "Step #3", and run just that portion to actually make the changes to all columns that qualify. | |
--- NOTES: |