DynamoDB Scan vs Query - The Things You Need To Know

  Рет қаралды 24,383

Be A Better Dev

Be A Better Dev

Күн бұрын

DynamoDB Scans and Queries are two important operations you're going to be performing regularly as a user of DynamoDB. In this video, learn the key differences between these operations (with examples) and when to use one over the other.
Become a Better Developer Using the Courses I Recommend Below:
- Master FAANG Coding Interviews - bit.ly/3CVgRN9
- Learn AWS From Scratch - bit.ly/3gasoAm
- Master Python here - bit.ly/3yJFJpI
🎉SUPPORT Daniel @ BE A BETTER DEV🎉
Become a Patron: / beabetterdev
📚 MY RECOMMENDED READING LIST FOR SOFTWARE DEVELOPERS📚
Clean Code - amzn.to/37T7xdP
Clean Architecture - amzn.to/3sCEGCe
Head First Design Patterns - amzn.to/37WXAMy
Domain Driven Design - amzn.to/3aWSW2W
Code Complete - amzn.to/3ksQDrB
The Pragmatic Programmer - amzn.to/3uH4kaQ
Algorithms - amzn.to/3syvyP5
Working Effectively with Legacy Code - amzn.to/3kvMza7
Refactoring - amzn.to/3r6FQ8U
🎙 MY RECORDING EQUIPMENT 🎙
Shure SM58 Microphone - amzn.to/3r5Hrf9
Behringer UM2 Audio Interface - amzn.to/2MuEllM
XLR Cable - amzn.to/3uGyZFx
Acoustic Sound Absorbing Foam Panels - amzn.to/3ktIrY6
Desk Microphone Mount - amzn.to/3qXMVIO
Logitech C920s Webcam - amzn.to/303zGu9
Fujilm XS10 Camera - amzn.to/3uGa30E
Fujifilm XF 35mm F2 Lens - amzn.to/3rentPe
Neewer 2 Piece Studio Lights - amzn.to/3uyoa8p
💻 MY DESKTOP EQUIPMENT 💻
Dell 34 inch Ultrawide Monitor - amzn.to/2NJwph6
Autonomous ErgoChair 2 - bit.ly/2YzomEm
Autonomous SmartDesk 2 Standing Desk - bit.ly/2YzomEm
MX Master 3 Productivity Mouse - amzn.to/3aYwKVZ
Das Keyboard Prime 13 MX Brown Mechanical- amzn.to/3uH6VBF
Veikk A15 Drawing Tablet - amzn.to/3uBRWsN
🌎 Find me here:
Twitter - / beabetterdevv
Instagram - / beabetterdevv
Patreon - Donations help fund additional content - / beabetterdev
#AWS
#DynamoDB
#Serverless

Пікірлер: 28
@ralfrolfen5504
@ralfrolfen5504 Жыл бұрын
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 Жыл бұрын
Glad you enjoyed it!
@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. 👍
@mumtazirteqaahmed8553
@mumtazirteqaahmed8553 Жыл бұрын
Great explanation! On Point!
@BullishBuddy
@BullishBuddy 2 жыл бұрын
Wonderful video!!
@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?
@tiagosantos680
@tiagosantos680 2 жыл бұрын
Super well done video
@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?
@kerisnarendra
@kerisnarendra 2 жыл бұрын
Is it additional cost when querying on GSI?
@fafapw
@fafapw Жыл бұрын
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 Жыл бұрын
Hi Fabricio! The Sort key logic applies the same way to GSIs as it does to PKs. Hope this clarifies!
@DuyLe-gq6cu
@DuyLe-gq6cu 2 жыл бұрын
I use query to get data, but it also limit 1mb data like you explain scan.
@rickharold7884
@rickharold7884 2 жыл бұрын
Cool.
@hoddybhaba6704
@hoddybhaba6704 Жыл бұрын
impeccable!!!
@BeABetterDev
@BeABetterDev Жыл бұрын
Thanks Hoddy!
@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 Күн бұрын
Hi ! please did you find the answer of this question ? I'm also asking me this question
@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 Жыл бұрын
put a modified/created timestamp in your data, and filter based on that
@moneeshkumar1838
@moneeshkumar1838 Жыл бұрын
Is it possible to parallel query operation? Just like parallel scan operation
@BeABetterDev
@BeABetterDev Жыл бұрын
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 Жыл бұрын
@@BeABetterDev Thanks Man Appreciated
@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.
@vimalpatel44
@vimalpatel44 Жыл бұрын
are RangeKey and sortkey same?
@dadestor
@dadestor Жыл бұрын
Yes
@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 Aurora VS DynamoDB
38:39
Be A Better Dev
Рет қаралды 78 М.
AWS DynamoDB Schema Design | How to choose the right key
12:15
Be A Better Dev
Рет қаралды 207 М.
Задержи дыхание дольше всех!
00:42
Аришнев
Рет қаралды 3,6 МЛН
A little girl was shy at her first ballet lesson #shorts
00:35
Fabiosa Animated
Рет қаралды 14 МЛН
Clown takes blame for missing candy 🍬🤣 #shorts
00:49
Yoeslan
Рет қаралды 43 МЛН
Here's what I know about DynamoDB
37:36
Web Dev Cody
Рет қаралды 7 М.
What is a DynamoDB FilterExpression? (for Scan and Query!)
9:11
Be A Better Dev
Рет қаралды 22 М.
Choosing a Database for Systems Design: All you need to know in one video
23:58
Microservices with Databases can be challenging...
20:52
Software Developer Diaries
Рет қаралды 21 М.
AWS SQS vs SNS vs EventBridge - When to Use What?
22:37
Be A Better Dev
Рет қаралды 170 М.
What is a DynamoDB GSI (Global Secondary Index) ?
10:19
Be A Better Dev
Рет қаралды 116 М.
SQL Index |¦| Indexes in SQL |¦| Database Index
9:57
Socratica
Рет қаралды 611 М.
Pagination in MySQL - offset vs. cursor
13:20
PlanetScale
Рет қаралды 55 М.
Задержи дыхание дольше всех!
00:42
Аришнев
Рет қаралды 3,6 МЛН