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
@@ -389,48 +389,6 @@ When you specify a transaction ID, make sure you specify a unique ID (for exampl
389
389
390
390
:::
391
391
392
-
##### Begin or start a transaction in read-only mode
393
-
394
-
You can also begin or start a transaction in read-only mode. In this case, the transaction will not allow any write operations, and it will be optimized for read operations.
395
-
396
-
:::note
397
-
398
-
Using read-only transactions for read-only operations is strongly recommended to improve performance and reduce resource usage.
399
-
400
-
:::
401
-
402
-
You can begin or start a transaction in read-only mode as follows:
Specifying a transaction ID is useful when you want to link external systems to ScalarDB. Otherwise, you should use the `beginReadOnly()` method or the `startReadOnly()` method.
429
-
430
-
When you specify a transaction ID, make sure you specify a unique ID (for example, UUID v4) throughout the system since ScalarDB depends on the uniqueness of transaction IDs for correctness.
431
-
432
-
:::
433
-
434
392
#### Join a transaction
435
393
436
394
Joining a transaction is particularly useful in a stateful application where a transaction spans multiple client requests. In such a scenario, the application can start a transaction during the first client request. Then, in subsequent client requests, the application can join the ongoing transaction by using the `join()` method.
@@ -671,14 +629,9 @@ If the result has more than one record, `transaction.get()` will throw an except
671
629
672
630
##### `Scan` operation
673
631
674
-
`Scan` is an operation to retrieve multiple records within a partition. You can specify clustering-key boundaries and orderings for clustering-key columns in `Scan` operations. To execute a `Scan` operation, you can use the `transaction.scan()` method or the `transaction.getScanner()` method:
675
-
676
-
-`transaction.scan()`:
677
-
- This method immediately executes the given `Scan` operation and returns a list of all matching records. It is suitable when the result set is expected to be small enough to fit in memory.
678
-
-`transaction.getScanner()`:
679
-
- This method returns a `Scanner` object that allows you to iterate over the result set lazily. It is useful when the result set may be large, as it avoids loading all records into memory at once.
632
+
`Scan` is an operation to retrieve multiple records within a partition. You can specify clustering-key boundaries and orderings for clustering-key columns in `Scan` operations.
680
633
681
-
You need to create a `Scan` object first, and then you can execute the object by using the `transaction.scan()` method or the `transaction.getScanner()` method as follows:
634
+
You need to create a `Scan` object first, and then you can execute the object by using the `transaction.scan()` method as follows:
682
635
683
636
```java
684
637
// Create a `Scan` operation.
@@ -699,17 +652,8 @@ Scan scan =
699
652
.limit(10)
700
653
.build();
701
654
702
-
// Execute the `Scan` operation by using the `transaction.scan()` method.
655
+
// Execute the `Scan` operation.
703
656
List<Result> results = transaction.scan(scan);
704
-
705
-
// Or, execute the `Scan` operation by using the `transaction.getScanner()` method.
You can omit the clustering-key boundaries or specify either a `start` boundary or an `end` boundary. If you don't specify `orderings`, you will get results ordered by the clustering order that you defined when creating the table.
@@ -1348,14 +1292,9 @@ For details about the `Get` operation, see [`Get` operation](#get-operation).
1348
1292
1349
1293
#### Execute `Scan` operation
1350
1294
1351
-
`Scan` is an operation to retrieve multiple records within a partition. You can specify clustering-key boundaries and orderings for clustering-key columns in `Scan` operations. To execute a `Scan` operation, you can use the `transactionManager.scan()` method or the `transactionManager.getScanner()` method:
1352
-
1353
-
-`transactionManager.scan()`:
1354
-
- This method immediately executes the given `Scan` operation and returns a list of all matching records. It is suitable when the result set is expected to be small enough to fit in memory.
1355
-
-`transactionManager.getScanner()`:
1356
-
- This method returns a `Scanner` object that allows you to iterate over the result set lazily. It is useful when the result set may be large, as it avoids loading all records into memory at once.
1295
+
`Scan` is an operation to retrieve multiple records within a partition. You can specify clustering-key boundaries and orderings for clustering-key columns in `Scan` operations.
1357
1296
1358
-
You need to create a `Scan` object first, and then you can execute the object by using the `transactionManager.scan()` method or the `transactionManager.getScanner()` method as follows:
1297
+
You need to create a `Scan` object first, and then you can execute the object by using the `transactionManager.scan()` method as follows:
1359
1298
1360
1299
```java
1361
1300
// Create a `Scan` operation.
@@ -1375,17 +1314,8 @@ Scan scan =
1375
1314
.limit(10)
1376
1315
.build();
1377
1316
1378
-
// Execute the `Scan` operation by using the `transactionManager.scan()` method.
Clusters are backed up automatically based on the backup policy, and these backups are retained for a specific duration. You can also perform on-demand backups. For details on performing backups, see [YugabyteDB Managed: Back up and restore clusters](https://docs.yugabyte.com/preview/yugabyte-cloud/cloud-clusters/backup-clusters/).
68
68
</TabItem>
69
-
<TabItemvalue="Db2"label="Db2">
70
-
Use the `backup` command. For details, on performing backups, see [Db2: Backup overview](https://www.ibm.com/docs/en/db2/12.1.0?topic=recovery-backup).
71
-
</TabItem>
72
69
</Tabs>
73
70
74
71
### Back up with explicit pausing
@@ -178,7 +175,4 @@ The restore methods by database listed below are just examples of some of the da
You can restore from the scheduled or on-demand backup within the backup retention period. For details on performing backups, see [YugabyteDB Managed: Back up and restore clusters](https://docs.yugabyte.com/preview/yugabyte-cloud/cloud-clusters/backup-clusters/).
180
177
</TabItem>
181
-
<TabItemvalue="Db2"label="Db2">
182
-
Use the `restore` command. For details, on restoring the database, see [Db2: Restore overview](https://www.ibm.com/docs/en/db2/12.1.0?topic=recovery-restore).
0 commit comments