Sefism is free for learners. We are here to help you grow, one step at a time.Join for free
Sefism.

Cheat sheet · Build products

Choosing the right database cheat sheet

Opens with credits

For students and developers building apps who need to pick the right database for each job: relational, document, key-value, cache, search, vector, warehouse, graph, time series and object storage. Use the decision chart and the at-a-glance cards to choose quickly, and the cloud tables to find the matching managed service on AWS, Azure and Google Cloud.

Curated by Tauseef Fayyaz10 chapters78 concepts141 glossary terms

Chapters

10 chapters · 78 concepts

  1. 1Start from the dataDescribe the data before naming a product: its shape, the questions the app asks, how much there is and how correct it must be. The decision chart turns those answers into a database type.7 concepts
  2. 2Relational databasesPostgreSQL, MySQL, SQLite and SQL Server store related records in tables with keys, constraints and transactions. For most apps one of them is the right default, with JSON columns for the flexible parts.7 concepts
  3. Document databasesMongoDB and Firestore store each record as a JSON-like document. They suit data that varies in shape and is read one whole record at a time.7 conceptsOpens with credits
  4. Key-value stores and cachingKey-value stores fetch a value by its key very quickly. Redis serves as a cache and for sessions and rate limits; DynamoDB is a durable key-value primary database.8 conceptsOpens with credits
  5. SearchReal search needs text analysis, an inverted index and relevance ranking. Start with PostgreSQL full-text search and add a search engine when typos, facets or ranking demand it.7 conceptsOpens with credits
  6. Vector search for AIEmbeddings turn text and images into vectors; vector search finds the nearest ones. pgvector covers most early apps, and dedicated vector databases add features at larger sizes.8 conceptsOpens with credits
  7. Columnar databases and warehousesReports over millions of rows need columnar storage. Know OLTP from OLAP, and where BigQuery, Snowflake, Redshift, ClickHouse and DuckDB fit.8 conceptsOpens with credits
  8. Graph, time series and object storageGraph databases follow connections, time-series databases handle readings over time, and object storage holds files. Know when each earns its place.7 conceptsOpens with credits
  9. Choosing, combining and running itManaged or self-hosted, the matching services on each cloud, free tiers, cost, Firebase versus Supabase and a decision you can explain.10 conceptsOpens with credits
  10. Each type at a glanceOne card per database type: use it when, avoid it when, example products and managed options. Read with the decision chart.9 conceptsOpens with credits
  11. 11Glossary, A to ZEvery concept in the sheet and the smaller terms it uses, in one list.141 terms

About this sheet

SQL, document, cache, search, vector and more.

Picked from the other libraries by shared topics.

Work with me

Stuck on something specific?

Writing only gets you so far. If you want an answer to your situation rather than the general case, book a session and we will work through it together. Sessions are free for approved Sefism members, and a few slots open each week.

  • 1:1 Mentorship
  • Fresh Graduate Mentorship
  • Career Guidance

Brand deals, promos and partnerships: tauseeffayyaz@gmail.com