Skip to content

Commit 861d3c9

Browse files
authored
Merge pull request #113437 from dimitri-furman/dimitri-furman
Described scaling latency with PFS storage
2 parents da8fa2a + 57589f7 commit 861d3c9

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

articles/sql-database/sql-database-single-database-scale.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ms.topic: conceptual
1010
author: stevestein
1111
ms.author: sstein
1212
ms.reviewer: carlrab
13-
ms.date: 03/10/2020
13+
ms.date: 04/30/2020
1414
---
1515
# Scale single database resources in Azure SQL Database
1616

@@ -42,14 +42,28 @@ Changing the service tier or compute size of mainly involves the service perform
4242
4343
## Latency
4444

45-
The estimated latency to change the service tier or rescale the compute size of a single database or elastic pool is parameterized as follows:
45+
The estimated latency to change the service tier, scale the compute size of a single database or elastic pool, move a database in/out of an elastic pool, or move a database between elastic pools is parameterized as follows:
4646

4747
|Service tier|Basic single database,</br>Standard (S0-S1)|Basic elastic pool,</br>Standard (S2-S12), </br>Hyperscale, </br>General Purpose single database or elastic pool|Premium or Business Critical single database or elastic pool|
4848
|:---|:---|:---|:---|
4949
|**Basic single database,</br> Standard (S0-S1)**|&bull; &nbsp;Constant time latency independent of space used</br>&bull; &nbsp;Typically, less than 5 minutes|&bull; &nbsp;Latency proportional to database space used due to data copying</br>&bull; &nbsp;Typically, less than 1 minute per GB of space used|&bull; &nbsp;Latency proportional to database space used due to data copying</br>&bull; &nbsp;Typically, less than 1 minute per GB of space used|
5050
|**Basic elastic pool, </br>Standard (S2-S12), </br>Hyperscale, </br>General Purpose single database or elastic pool**|&bull; &nbsp;Latency proportional to database space used due to data copying</br>&bull; &nbsp;Typically, less than 1 minute per GB of space used|&bull; &nbsp;Constant time latency independent of space used</br>&bull; &nbsp;Typically, less than 5 minutes|&bull; &nbsp;Latency proportional to database space used due to data copying</br>&bull; &nbsp;Typically, less than 1 minute per GB of space used|
5151
|**Premium or Business Critical single database or elastic pool**|&bull; &nbsp;Latency proportional to database space used due to data copying</br>&bull; &nbsp;Typically, less than 1 minute per GB of space used|&bull; &nbsp;Latency proportional to database space used due to data copying</br>&bull; &nbsp;Typically, less than 1 minute per GB of space used|&bull; &nbsp;Latency proportional to database space used due to data copying</br>&bull; &nbsp;Typically, less than 1 minute per GB of space used|
5252

53+
> [!NOTE]
54+
> Additionally, for Standard (S2-S12) and General Purpose databases, latency for moving a database in/out of an elastic pool or between elastic pools will be proportional to database size if the database is using Premium File Share ([PFS](https://docs.microsoft.com/azure/storage/files/storage-files-introduction)) storage.
55+
>
56+
> To determine if a database is using PFS storage, execute the following query in the context of the database. If the value in the AccountType column is `PremiumFileStorage`, the database is using PFS storage.
57+
58+
```sql
59+
SELECT s.file_id,
60+
s.type_desc,
61+
s.name,
62+
FILEPROPERTYEX(s.name, 'AccountType') AS AccountType
63+
FROM sys.database_files AS s
64+
WHERE s.type_desc IN ('ROWS', 'LOG');
65+
```
66+
5367
> [!TIP]
5468
> To monitor in-progress operations, see: [Manage operations using the SQL REST API](https://docs.microsoft.com/rest/api/sql/operations/list), [Manage operations using CLI](/cli/azure/sql/db/op), [Monitor operations using T-SQL](/sql/relational-databases/system-dynamic-management-views/sys-dm-operation-status-azure-sql-database) and these two PowerShell commands: [Get-AzSqlDatabaseActivity](/powershell/module/az.sql/get-azsqldatabaseactivity) and [Stop-AzSqlDatabaseActivity](/powershell/module/az.sql/stop-azsqldatabaseactivity).
5569

0 commit comments

Comments
 (0)