current position:Home>Precautions for AWS serverless design dynamodb
Precautions for AWS serverless design dynamodb
2022-04-29 07:57:07【zoobuzas】
AWS serverless Design -DynamoDB
Overall concept map
Primary key
I think the first thing to pay attention to is DynamoDB Not suitable for “ In two or more columns ( attribute ) Query for conditional search in , Its record ( project ) Primary keys that cannot always be uniquely identified by those specifications ” Take out frequently as required .
This allows you to specify... For each table Hash Key Or add another Sort Key
Hash key only
Hash key and sort key
Set the primary key in one of the modes .Hash Key Also known as Partition Key, It can be understood as each Partition Key Fragmentation . therefore , It is recommended to set the partition key as the key for evenly distributed queries . Similar to the traditional database PK key .
Sort Key Sort keys are also called range keys . A lot of times there are hashkey I think it's enough . If the table structure requires a lot of order , I suggest setting this key additionally , Otherwise, don't set , It's best to set less . More settings will increase RCU
then HashKey&SortKey Must be a unique key
- Since it's a primary key , Naturally, through separate Hash Key or Hash Key & Sort Key( Composite primary key ) To uniquely identify records .
- If you insert a duplicate unique key , The corresponding record will be overwritten ( to update ). This feature is similar to most Nosql The nature of is the same . such as redis MongoDB
- Scan Performance degrades as the number of records increases ,Read Capacity Unit Bigger , Cost increase , So it's best to query accurately . Don't move scan, Actually DynamoDb The cost of is very high .
- DynamoDB Project size and format
Global index
GSI Is one that can create different Hash Key and Sort Key Function of the table . You can freely add or delete it later , Not just when creating tables . allow hashkey and sortkey coincidence , Use GSI Reading will RCU halve . Use GSI Writing to the table will make WCU double .
In addition to the global index, there are local secondary indexes (LSI)
Can only be created when creating a table
In addition to the global index, there are local secondary indexes (LSI)
Can only be created when creating a table
copyright notice
author[zoobuzas],Please bring the original link to reprint, thank you.
https://en.qdmana.com/2022/119/202204290550503764.html
The sidebar is recommended
- Which one charges less for opening a securities account and how to open the account
- Spring MVC notes 02 domain object sharing data, view, restful, httpmessageconverter, file upload and download
- Httpclient setting timeout
- Command line / Python uses pdf2htmlex to convert PDF to HTML
- [front end three swordsmen III] analysis of JavaScript scalpel Part II
- How to choose the front-end learning path
- Finite element parametric element, calculation, theoretical problems
- Handwritten CSS modules to understand its principle
- Front end browser debugging tips
- Performance problem analysis guide for enterprise JavaScript applications running in production systems
guess what you like
CSS aspect-ratio All In One
Actual combat of vue3 project --- Zhihu daily --- details page
Actual combat of vue3 project --- Zhihu daily --- home page function
Great Wall Motors is falling endlessly! The boss has lost 150 billion yuan in half a year, and the performance of the new energy sector has improved
Nginx tips batch shutdown process
Openresty introduces nginx_ upstream_ check_ Module module
Nginx multiple servers_ How does name match
Why does the front end still prompt cannot post, and the error reported by the back end still prompt null pointer?
HTML Li set margin: 50%, but the width of the outermost div is the standard
Are there any specific steps to create a prototype, such as JavaScript?
Random recommended
- How does HTML5 display the value obtained from the database in the specified area
- Problems related to nginx rewriting interface
- What happens when you open a CSS file in eclipse without responding
- React download local template can be downloaded locally, but the deployment online download is blank
- @Babel / traverse official example running error: typeerror: traverse is not a function
- The click event of jQuery has no effect
- How to learn from non professional background?
- Usage of API documented as @since 1.8+ less... (Ctrl+F1) Inspection info: This inspection finds all
- Configuration Vue of webpack
- Introduction to nginx (learning notes)
- Is the financial management class of qiniu school true? Can you learn how to manage money in free lessons
- How does Java randomly get elements from a list
- Use of Vue on in Vue
- Use of Vue router
- Vue basic syntax
- Use of webpack
- Vue diff algorithm
- CSS -- Text gradient from top to bottom
- Routing: Vue router
- Leetcode 658. Find K closest elements
- How to configure Vue in Vue project config. JS to solve cross domain problems
- Centos6 makes nginx-1.21.6-rpm package -- the way to build a dream
- [vue2-sgg v] vuex
- [vue2-sgg vi] route Vue router guard
- [vue2-sgg VII] Vue export and deploy to nginx --- UI component library (element UI...)
- Chapter 12 Ajax
- Clion remote debugging ubutun server, blood lessons
- The latest vue-i18n international plug-in realizes language switching (with source code)
- Vue monitors watch usage
- Vue encapsulates Axios to the full version of the calling interface (code source code)
- Watch data monitoring in Vue and detailed explanation of various attributes in watch
- Vue encapsulates Axios to call interface Full Version (code source code) latest recommendation (II)
- Vue encapsulates Axios to the full version of the calling interface (code source code)
- Ajax usage based on JQ
- Vue project optimization
- Vue - form generator form code generation
- Data acquisition in vuex is assigned to the local problem, and when is vuex data assigned to the local problem
- The modal box component is encapsulated in Vue, and the animation effect in Vue
- Swiper, the application of swiper in Vue, and various versions of swiper are applied in Vue projects
- Python——ReadTimeoutError: HTTPSConnectionPool(host=‘files.pythonhosted.org‘, port=443)