Reading Notes I: Database Internals - Storage Engines

Reading Notes I: Database Internals - Storage Engines
Photo by charlesdeluvio / Unsplash

🚸
It is a bullet note rather than a blog post. You probably wouldn't get much or anything.

Database purposes:

  • Hot data,
  • Long-lived cold data,
  • Analytical queries,
  • Only key-value pairs,
  • Store time-series data,
  • Large blob,

Some sources group DBMSs into three major categories,

  • Online transaction processing (OLTP)
    • Handles a large number of user-facing requests and transactions. Queries are often predefined and short-lived,
  • Online analytical processing (OLTP)
    • Handles complex aggregations. Often use for analytics and data warehousing. Complex, long-running, ad-hoc queries,
  • Hybrid transactional and analytical processing (HTAP)
    • Combine OLTP and OLAP

Spatial Locality, One of the Principles of Locality

  • This basically says that if you fetch data from where it is been, you will likely get its neighbors.

Data Files/ Primary Files can be implemented;

  • Index-organized tables (IOT)
  • Heap-organized tables (heap files)
  • Hash-organized tables (hashed files )

Storage structures common variables;

  • Buffering
  • Mutability
  • Ordering

Read Further

  • Write Optimizations
    • Bitcask
    • WiscKey