question

srivivek avatar image
srivivek asked

How much time will it take to create a Database snapshot

I want to create DBSnapshot for reporting purposes of mirrored Databases of sizes 50GB and 100GB. How much time will it take to create a Database snapshot of a Database with 50GB/100GB size(Assuming the users might update almost all the data(pages) in Principal Database which is going to reflect on mirrored DB). How frequently can i create them without any performance issues? Thanks.....
database-snapshot
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Magnus Ahlkvist avatar image
Magnus Ahlkvist answered
I really can't give you an answer about how long it will take to create a snapshot of a large database. But I imagine it won't take long at all, since taking a snapshot doesn't really copy any data from the source. It's when a data page in the source database is changed that the original page is copied to the snapshot before the data page is modified in the source database. So I'd say creating a database snapshot of a 100GB source database is done in seconds rather than minutes. You should see the snapshot as an empty file. It fills up as the source database is changed. Therefore you might get a performance hit when doing the first update to a page in the source database (since the page must be copied to the snapshot file before changes are written). If you have multiple snapshots, you copy data to multiple files prior to data being written to disk. Conceptual overview of database snapshots: **[ http://msdn.microsoft.com/en-us/library/ms187054.aspx][1]** Sparse files (which is what snapshots use): **[ http://msdn.microsoft.com/en-us/library/ms175823.aspx][2]** For a more in depth discussion about performance and snapshots: **[ http://download.microsoft.com/download/d/9/4/d948f981-926e-40fa-a026-5bfcf076d9b9/DBSnapshotPerf.docx][3]** [1]: http://msdn.microsoft.com/en-us/library/ms187054.aspx [2]: http://msdn.microsoft.com/en-us/library/ms175823.aspx [3]: http://download.microsoft.com/download/d/9/4/d948f981-926e-40fa-a026-5bfcf076d9b9/DBSnapshotPerf.docx
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.