1
00:00:00,180 --> 00:00:06,450
In this video, we are going to read data into Dynamo TV table with using a laser light commands.

2
00:00:06,480 --> 00:00:11,160
In this step we will read several items into the order dynamo DB table.

3
00:00:11,670 --> 00:00:17,430
To do that, please open the pseudocode and go to lecture folder and open the command text file.

4
00:00:17,550 --> 00:00:24,990
So we basically use the Dynamo DB gate item Select Command and we are providing some configurations,

5
00:00:24,990 --> 00:00:28,950
for example, consistent read and we are providing the table name.

6
00:00:28,950 --> 00:00:34,350
And of course we will provide the key information to get item from the Dynamo DB table.

7
00:00:34,350 --> 00:00:37,740
So this is the MAC version and this is the Windows version.

8
00:00:37,740 --> 00:00:40,920
So I'm going to use Windows version to get these.

9
00:00:41,860 --> 00:00:46,750
Item on Dynamo DB table is remember that in the last video we have added two items.

10
00:00:46,750 --> 00:00:51,610
So I'm going to retrieve one item which is the partition key is one.

11
00:00:51,610 --> 00:00:57,160
And the third key is a delivery, which is the status and ID attributes.

12
00:00:57,160 --> 00:01:01,120
So please copy these commands and paste in here.

13
00:01:02,240 --> 00:01:03,050
Let me.

14
00:01:04,300 --> 00:01:04,780
More.

15
00:01:07,310 --> 00:01:09,110
And paste in here, hit enter.

16
00:01:09,440 --> 00:01:14,300
So as you can see that we can successfully get response from the Dynamo DB table.

17
00:01:14,300 --> 00:01:20,420
So we basically requesting an item ID is the one and the status is a delivery.

18
00:01:20,480 --> 00:01:22,100
These are the partition and sort.

19
00:01:22,100 --> 00:01:28,880
K and we have also other attributes comes from the dynamic DB table item, which is the description

20
00:01:28,880 --> 00:01:30,040
and the order date.

21
00:01:30,050 --> 00:01:37,520
So when we are sending requests to the dynamic DB in the Get Item Klein Command, we also provide consistent

22
00:01:37,520 --> 00:01:38,020
read.

23
00:01:38,030 --> 00:01:40,380
So what is consistent with consistency?

24
00:01:40,610 --> 00:01:46,940
As you remember that the DB has two consistent level, which is the eventual consistency and strong

25
00:01:46,940 --> 00:01:48,050
consistency.

26
00:01:48,050 --> 00:01:51,770
So by default it is come from the eventual consistency.

27
00:01:51,770 --> 00:01:56,210
To make it a strong consistency, we can provide this attribute.

28
00:01:56,210 --> 00:01:58,520
So let me explain on the documentation.

29
00:01:58,520 --> 00:02:05,240
If you open the gate item documentation, you can come to the syntax syntax and come to consistent read.

30
00:02:05,240 --> 00:02:10,010
If you click this consistency it you can understand how it is working.

31
00:02:10,040 --> 00:02:16,490
If set through the operation use strong consistency it otherwise the operation use the eventual consistency.

32
00:02:16,610 --> 00:02:22,310
So that's why we are providing the consistent read and I have showed this documentation and how you

33
00:02:22,310 --> 00:02:27,860
can set the configurations in similar documentation with using the API API reference documentation.

34
00:02:28,010 --> 00:02:35,600
So as you can see that we have successfully get item from the Dynamo DB table using the SQL commands.
