Autodesk Revit, MS SQL Server LocalDB, and 4K disk blocks
I learned yesterday that Autodesk Revit uses MS SQL Server LocalDB, and the latter is sensitive towards 4K disk blocks.
Run in an elevated terminal to determine if the C volume resides on a 4K disk: fsutil fsinfo sectorinfo c:
If that’s the case, then run this to remedy the situation: reg add "HKLM\SYSTEM\CurrentControlSet\Services\stornvme\Parameters\Device" /v "ForcedPhysicalSectorSizeInBytes" /t REG_MULTI_SZ /d "* 4095" /f
Reboot the computer for the changes to take effect.
4095 is 0xFFF in hexadecimal, or 111111111111 in binary, and is being used as a bit mask.