DynamoDB Scan vs Query - The Things You Need To Know

  Рет қаралды 25,576

Be A Better Dev

Be A Better Dev

Күн бұрын

Пікірлер: 29
@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!
@srb1855
@srb1855 3 жыл бұрын
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. 👍
@__hazelnut
@__hazelnut Ай бұрын
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?
@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!
@mumtazirteqaahmed8553
@mumtazirteqaahmed8553 2 жыл бұрын
Great explanation! On Point!
@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?
@BullishBuddy
@BullishBuddy 3 жыл бұрын
Wonderful video!!
@pablogonzalezrobles4429
@pablogonzalezrobles4429 3 жыл бұрын
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 3 жыл бұрын
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.
@hoddybhaba6704
@hoddybhaba6704 2 жыл бұрын
impeccable!!!
@BeABetterDev
@BeABetterDev 2 жыл бұрын
Thanks Hoddy!
@tiagosantos680
@tiagosantos680 3 жыл бұрын
Super well done video
@DuyLe-gq6cu
@DuyLe-gq6cu 3 жыл бұрын
I use query to get data, but it also limit 1mb data like you explain scan.
@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?
@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
@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
@kerisnarendra
@kerisnarendra 3 жыл бұрын
Is it additional cost when querying on GSI?
@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
@vimalpatel44
@vimalpatel44 Жыл бұрын
are RangeKey and sortkey same?
@dadestor
@dadestor Жыл бұрын
Yes
@rickharold7884
@rickharold7884 3 жыл бұрын
Cool.
@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)?
@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?
AWS IAM Core Concepts You NEED to Know
21:40
Be A Better Dev
Рет қаралды 214 М.
AWS Aurora VS DynamoDB
38:39
Be A Better Dev
Рет қаралды 81 М.
Smart Sigma Kid #funny #sigma
00:14
CRAZY GREAPA
Рет қаралды 28 МЛН
Un coup venu de l’espace 😂😂😂
00:19
Nicocapone
Рет қаралды 11 МЛН
Osman Kalyoncu Sonu Üzücü Saddest Videos Dream Engine 262 #shorts
00:20
World‘s Strongest Man VS Apple
01:00
Browney
Рет қаралды 69 МЛН
DynamoDB in 20 Minutes - Intro to NoSQL
20:16
Caleb Curry
Рет қаралды 9 М.
What is a DynamoDB FilterExpression? (for Scan and Query!)
9:11
Be A Better Dev
Рет қаралды 23 М.
AWS DynamoDB Schema Design | How to choose the right key
12:15
Be A Better Dev
Рет қаралды 213 М.
What is a DynamoDB GSI (Global Secondary Index) ?
10:19
Be A Better Dev
Рет қаралды 120 М.
The Most Important AWS Core Services That You NEED To Know About!
18:09
Be A Better Dev
Рет қаралды 415 М.
Microservices with Databases can be challenging...
20:52
Software Developer Diaries
Рет қаралды 67 М.
Top 5 Tips For Working With DynamoDB
8:28
Be A Better Dev
Рет қаралды 6 М.
Smart Sigma Kid #funny #sigma
00:14
CRAZY GREAPA
Рет қаралды 28 МЛН