You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: azure-sql/database/service-tier-hyperscale-frequently-asked-questions-faq.yml
+2-27Lines changed: 2 additions & 27 deletions
Original file line number
Diff line number
Diff line change
@@ -428,7 +428,7 @@ sections:
428
428
You can connect to these additional read-only compute replicas by setting the `ApplicationIntent` property in your connection string to `ReadOnly`. Any connections marked with `ReadOnly` are automatically routed to one of the HA secondary replicas, if they were added for your database. For details, see [Use read-only replicas to offload read-only query workloads](read-scale-out.md).
429
429
430
430
- question: |
431
-
How do I validate if I have successfully connected to secondary compute replica using SSMS or other client tools?
431
+
How do I validate if I have successfully connected to secondary compute replica using SQL Server Management Studio (SSMS) or other client tools?
432
432
answer: |
433
433
You can execute the following T-SQL query: `SELECT DATABASEPROPERTYEX ('<database_name>', 'Updateability')`. The result is `READ_ONLY` if you are connected to a read-only secondary replica, and `READ_WRITE` if you are connected to the primary replica. Note that the database context must be set to the name of your database, not to the `master` database.
434
434
@@ -455,15 +455,13 @@ sections:
455
455
- question: |
456
456
Can I add indexes and views on my secondary compute replicas?
457
457
answer: |
458
-
No. Hyperscale databases have shared storage, meaning that all compute replicas see the same tables, indexes, and other database objects. If you want additional indexes optimized for reads on secondary, you must add them on the primary.
458
+
No. Hyperscale databases have shared storage, meaning that all compute replicas see the same tables, indexes, and other database objects. If you want additional indexes optimized for reads on secondary, you must add them on the primary. You can still create temporary tables (table names prefixed with # or ##) on each secondary replica to store temporary data. Temporary tables are read-write.
459
459
460
460
- question: |
461
461
How much delay is there going to be between the primary and secondary compute replicas?
462
462
answer: |
463
463
Data latency from the time a transaction is committed on the primary to the time it is readable on a secondary depends on current log generation rate, transaction size, load on the replica, and other factors. Typical data latency for small transactions is in tens of milliseconds, however there is no upper bound on data latency. Data on a given secondary replica is always transactionally consistent, thus larger transactions take longer to propagate. However, at a given point in time data latency and database state may be different for different secondary replicas. Workloads that need to read committed data immediately should run on the primary replica.
464
464
465
-
- name: Named replicas
466
-
questions:
467
465
- question: |
468
466
Can a named replica be used as a failover target?
469
467
answer: |
@@ -489,29 +487,6 @@ sections:
489
487
answer: |
490
488
Named replicas will still be available for read-only access, as usual.
491
489
492
-
- question: |
493
-
How do I validate if I have successfully connected to secondary compute replica using SQL Server Management Studio (SSMS) or other client tools?
494
-
answer: |
495
-
You can execute the following T-SQL query. The database context must be set to the name of the Hyperscale database, not to the `master` database.
496
-
497
-
```sql
498
-
SELECT @@SERVERNAME AS logical_server_name, DB_NAME() AS database_name, DATABASEPROPERTYEX(DB_NAME(), 'Updateability') AS replica_updateability;
499
-
```
500
-
501
-
`replica_updateability` will be `READ_ONLY` if you are connected to a read-only secondary replica, and `READ_WRITE` if you are connected to the primary replica.
502
-
503
-
- question: |
504
-
Can I create any objects or indexes on my secondary compute replicas?
505
-
answer: |
506
-
No. Hyperscale databases have shared storage, meaning that all compute replicas see the same tables, indexes, views, etc. If you want additional indexes optimized for reads on secondary, you must add them on the primary.
507
-
508
-
You can still create temporary tables (table names prefixed with # or ##) on each secondary replica to store temporary data. Temporary tables are read-write.
509
-
510
-
- question: |
511
-
How much delay is there between the primary and secondary compute replicas?
512
-
answer: |
513
-
Data latency from the time a transaction is committed on the primary to the time it is readable on a secondary depends on current log generation rate, transaction size, load on the replica, and other factors. Typical data latency for small transactions is in tens of milliseconds, however there is no upper bound on data latency. Data on a given secondary replica is always transactionally consistent. However, at a given point in time data latency may be different for different secondary replicas. Workloads that need to read committed data immediately should run on the primary replica.
0 commit comments