question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

az sql db copy - performance characteristics: what is the impact on source db?

See original GitHub issue

I just wanted to enquire, because there is nothing in the documentation, but what are the performance or uptime considerations when executing az sql db copy ?

Like, what is it actually doing behind the scenes?

I ask because for some reason, when managing via az sql db export and az sql db import of bacpacs via storage, it seems to take a very long time, say about 1 to 1.5hrs, even if all in same region, for a large (say 60gb) database. In contrast, az sql db copy seems to do the same without even breaking a sweat, sometimes completing in about 2 to 3 minutes, even between servers?

Why? How does it achieve this speed? And what happens to the source DB during the copy? Is it still available? Is there some kind of cost/pricing dimension involved?

Can bacpacs be processed with similar efficiency?

TL;DR: I want to know if az sql db copy is safe to use with production databases as the source!

Thanks!

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:9

github_iconTop GitHub Comments

1reaction
yonzhancommented, Jan 2, 2022

route to SQL service team to take a look

1reaction
tkentcommented, Jan 1, 2022

@yonzhan - would be great to get some confirmation of @t-l-k’s investigation. This is something Microsoft should explain, not something users should have to try to guess at by picking through articles on the internet.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Copy a database - Azure SQL Database | Microsoft Learn
A database copy is a transactionally consistent snapshot of the source database as of a point in time after the copy request is...
Read more >
Do management operations such as database copy affect our ...
During the create database as copy, the source database was not affected at all. That means constant 0%cpu, 0%data_io, 0%log_write.
Read more >
Four different methods to copy your Azure SQL database
The following database copy methods are available in Azure to copy ... may need to trim the source data in order to meet...
Read more >
Best practices for AWS Database Migration Service
A number of factors affect the performance of your AWS DMS migration: Resource availability on the source. The available network throughput. The resource ......
Read more >
Will copy database for one instance will impact performance ...
the server you refer to in Azure SQL Database is just a logical one and does not correspond to an actual physical server....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found