Тёмный

DynamoDB Scan vs Query - The Things You Need To Know 

Be A Better Dev
Подписаться 233 тыс.
Просмотров 25 тыс.
50% 1

Опубликовано:

 

27 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 29   
@__hazelnut
@__hazelnut 23 дня назад
Good video, but I don’t quite understand how query lookup is O(1). How is that possible if we are searching the table for the matches to our query? Isn’t it based on the size of our table, so O(n) or larger?
@pablogonzalezrobles4429
@pablogonzalezrobles4429 2 года назад
Nice video. Question: How should be format the datetime for using query with between? dd:mm:yyyy hh:mm:ss? Or do we need to separate date and time? Any suggestions about querying dt columns.
@adds-kz3oc
@adds-kz3oc 2 года назад
Personally, I convert DateTimes to Unix timestamps. 28:10:2021 20:00:00 => 1635447600. You can then query for values less than, greater than, or between the dates.
@jesusesquivelroman7524
@jesusesquivelroman7524 Год назад
Very nice video! Very educational. What if in my Customer Order table I have other fields like "Country" and "Product Type" and I want to filter, for example, "Tech" products bought in the "US". How will I query or fetch that data?
@jonathanduran2921
@jonathanduran2921 Год назад
Can you do operations like give me all customers with id greater than 1 on the partition key? Or are you limited to one value for the partition key for each query?
@moneeshkumar1838
@moneeshkumar1838 2 года назад
Is it possible to parallel query operation? Just like parallel scan operation
@BeABetterDev
@BeABetterDev 2 года назад
Hi Moneesh, I don't know of any built-in method to do this beyond using multiple threads and firing off separate queries. There's a good article on this topic by AWS here: aws.amazon.com/blogs/database/use-parallelism-to-optimize-querying-large-amounts-of-data-in-amazon-dynamodb/ Hope this helps
@moneeshkumar1838
@moneeshkumar1838 2 года назад
@@BeABetterDev Thanks Man Appreciated
@fafapw
@fafapw 2 года назад
Great video, dude! In my case, I'm using PK , but I have others 3 GSIs. The behavior is the same using GSI and his sort key comparing with PK + his sort key? thanks in advance!
@BeABetterDev
@BeABetterDev 2 года назад
Hi Fabricio! The Sort key logic applies the same way to GSIs as it does to PKs. Hope this clarifies!
@karimfayed3050
@karimfayed3050 2 года назад
Great Video! But what if I want to return a list with all my primary keys which method should I use and how to use it?
@albintsafack1232
@albintsafack1232 2 месяца назад
Hi ! please did you find the answer of this question ? I'm also asking me this question
@vimalpatel44
@vimalpatel44 Год назад
are RangeKey and sortkey same?
@dadestor
@dadestor Год назад
Yes
@hetalraval3928
@hetalraval3928 2 года назад
In my case i want to scan all data each time to compare with my response to know where update occur or insert and according to that i want to perform other requests...so what could be the best possible way?
@fadichamieh
@fadichamieh 2 года назад
put a modified/created timestamp in your data, and filter based on that
@BullishBuddy
@BullishBuddy 2 года назад
Wonderful video!!
@rickharold7884
@rickharold7884 2 года назад
Cool.
@zagamendes2438
@zagamendes2438 Год назад
You said when using query I need to know my pk, but what if I just want to list my data? Eg to do list, Will I have to use scan?
@srb1855
@srb1855 2 года назад
Excellent video! The release of your video is fortuitous - I am studying for my first AWS certification and just completed a dynamoDB lab the other night. However none of these subtleties you described were highlighted. Thanks for providing your insights. 👍
@DuyLe-gq6cu
@DuyLe-gq6cu 2 года назад
I use query to get data, but it also limit 1mb data like you explain scan.
@ralfrolfen5504
@ralfrolfen5504 2 года назад
Really good content! Well presented! No annoying background music. No annoying intro to the channel. No "Hey what's up guys". No strange accent; Just good, plain English.
@BeABetterDev
@BeABetterDev 2 года назад
Glad you enjoyed it!
@hoddybhaba6704
@hoddybhaba6704 2 года назад
impeccable!!!
@BeABetterDev
@BeABetterDev 2 года назад
Thanks Hoddy!
@kerisnarendra
@kerisnarendra 2 года назад
Is it additional cost when querying on GSI?
@mumtazirteqaahmed8553
@mumtazirteqaahmed8553 Год назад
Great explanation! On Point!
@tiagosantos680
@tiagosantos680 2 года назад
Super well done video
@naga_sai
@naga_sai Год назад
Do we need to Partition key all the times while querying (When I want to filter based on other normal keys)?
Далее
AWS Aurora VS DynamoDB
38:39
Просмотров 80 тыс.
AWS IAM Core Concepts You NEED to Know
21:40
Просмотров 210 тыс.
Are Multi-Column Indexes a good idea?
11:22
Просмотров 3,6 тыс.
Why You Shouldn't Nest Your Code
8:30
Просмотров 2,7 млн
What is a DynamoDB GSI (Global Secondary Index) ?
10:19
DynamoDB in 20 Minutes - Intro to NoSQL
20:16
Просмотров 8 тыс.
Here's what I know about DynamoDB
37:36
Просмотров 8 тыс.
Microservices with Databases can be challenging...
20:52