database Flashcards
(13 cards)
Type of Database
relational databases (e.g. Postgres) and NoSQL databases (e.g. DynamoDB)
when to choose relational databases
often used for transactional data (e.g. user records, order records, etc)
relational database features
SQL Joins, Indexes, RDBMS Transactions
what is RDBMS Transactions
a way of grouping multiple operations together into a single atomic operation
NoSQL Databases
a broad category of databases designed to accommodate a wide range of data models, including key-value, document, column-family, and graph formats. Unlike relational databases, NoSQL databases do not use a traditional table-based structure and are often schema-less.
nosql is good for…
Flexible Data Models: Your data model is evolving or you need to store different types of data structures without a fixed schema.
Scalability: Your application needs to scale horizontally (across many servers) to accommodate large amounts of data or high user loads.
Handling Big Data and Real-Time Web Apps: You have applications dealing with large volumes of data, especially unstructured data, or applications requiring real-time data processing and analytics.
Data Models of NoSQL
NoSQL databases come in many different flavors, each with its own data model. The most common types of NoSQL databases are key-value stores, document stores, column-family stores, and graph databases.
Scalability of NoSQL databases
NoSQL databases scale horizontally by using consistent hashing and/or sharding to distribute data across many servers.
Blob Storage
These platforms are specifically designed for handling large blobs of data, and are much more cost effective than a traditional database.
blob storage features
Durable, Scalable, low Cost, Secure
what is Search Optimized Database
designed to handle full-text search. They use techniques like indexing, tokenization, and stemming to make search queries fast and efficient
feature of Search Optimized Database
Inverted Indexes (data structure that maps from words to the documents that contain them), Tokenization (breaking a piece of text into individual words), Stemming (reducing words to their root form), Fuzzy Search (ability to find results that are similar to a given search term)
Examples of blob storage services
Amazon S3, Google Cloud Storage, and Azure Blob