I created a backup of the MS SQL Server 2014 database which contains a lot of binary data (FILESTREAM), about 2 million records in the table. The table itself has the following structure:
The database size is around 100GB (70GB of binary FILESTREAM data). When trying to restore the database, everything goes smooth up to 60% point (takes a couple of hours), but then it slows down to a crawl. I left if for a week and it didn't move from that 65% percent mark.
A couple of things that I noticed:
How can I speed up the restore process?
We have same issue with large filestream. How we solve it:
1) Disable "Windows Search" (and indexing on drive where is your database located)
2) Disable "Last access time" updates for all files:
Key Name: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem Name: NtfsDisableLastAccessUpdate Type: REG_DWORD Value: 1
3) Disable 8.3 file names generation:
Key Name: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem Name: NtfsDisable8dot3NameCreation Type: REG_DWORD Value: 1
For details, see this article