Leanpub Header

Skip to main content

Filters

Category: "Databases"

Databases

  1. Code a database in 45 steps (Go)
    Code a database in 45 steps (Go)
    a series of test-driven small coding puzzles
    Lowram Eepson

    This series of test-driven small coding puzzles lets you code a database from scratch (no dependencies).We'll cover KV storage engines, LSM-Tree indexes, SQL, concurrent transactions, ACID, etc.

  2. Build Your Own Database in Go From Scratch
    Build Your Own Database in Go From Scratch
    From B+tree to SQL in 3000 lines
    build-your-own.org

    Learn databases from the bottom up by coding your own, in small steps, and with simple Go code (language agnostic).Atomicity & durability. A DB is more than files!Persist data with fsync.Crash recovery.KV store based on B-tree.Disk-based data structures.Space management with a free list.Relational DB on top of KV.Learn how tables and indexes are related to B-trees.SQL-like query language; parser & interpreter.Concurrent transactions with copy-on-write data structures.

  3. Build a SQL Database Engine in C++
    Build a SQL Database Engine in C++
    Through Challenges --- Storage and Query Processing (Parts I & II)
    Hatem M.

    Build a working SQL database engine in C++20 -- from raw pages to a realquery executor -- one compilable, measured challenge at a time. Everyperformance claim is a benchmark you run yourself; every unit ends with areal bug, caught red-handed and fixed. Nothing asserted. Everythingdemonstrated.

  4. Deep dive into a SQL query
    Deep dive into a SQL query
    A Journey Through PostgreSQL's Query Processing
    Jesús Espino

    What really happens when PostgreSQL executes your query? Follow a SQL statement through every stage of PostgreSQL's internal pipeline—from raw text to returned results—and gain the deep understanding that transforms how you write, tune, and debug database applications.

  5. The Apache Ignite book
    The Apache Ignite book
    The next phase of the distributed systems
    Shamim Bhuiyan

    The complete guide to learning everything you need to know about Apache Ignite

  6. Building Database Engines from Scratch
    Building Database Engines from Scratch
    A Hands-On Guide to Storage, Concurrency, Query Processing, and Reliability in Systems Programming
    Steve Publications

    What really happens between typing a SQL query and getting a result? Build a database engine from the ground up in Rust and find out. You’ll work through storage, indexing, concurrency, recovery and query processing while turning each chapter’s code into one working system.

  7. Mastering Qdrant for RAG Applications
    Mastering Qdrant for RAG Applications
    Building Production Vector Search Systems with the Open-Source Vector Database
    Steve Publications

    Mastering Qdrant for RAG Applications is your practical guide to building production-ready RAG systems with the leading open-source vector database. Learn how to design, optimize, and scale high-performance vector search using Qdrant through clear explanations, real-world examples, and hands-on code.

  8. PostgreSQL Internals Mastery: A Comprehensive Guide
    PostgreSQL Internals Mastery: A Comprehensive Guide
    Volume I: Foundations & Core Concepts
    Giovanni Martinez

    "It’s 3 AM, your database just hit 500 connections, and everything has ground to a halt. Do you know why?"Most database outages aren't mysterious—they are architectural. Stop treating PostgreSQL as a black box and start understanding the mechanical "why" behind the engine. PostgreSQL Internals Mastery: Volume I is a modular deep dive designed for senior engineers who need to bridge the gap between writing SQL and architecting high-performance systems. From the process-per-connection model to the groundbreaking Asynchronous I/O (AIO) features of PostgreSQL 18, learn the internals that separate database architects from administrators. Don't just tune knobs; understand the machine.

  9. How Query Engines Work
    How Query Engines Work
    An Introductory Guide
    Andy Grove

    This book provides an introduction to the high-level concepts behind query engines and walks through all aspects of building a fully working SQL query engine in Kotlin.

  10. Rust Projects - Write a Redis Clone
    Rust Projects - Write a Redis Clone
    Explore asynchronous programming with the actor model using Rust and Tokio
    Leonardo Giordani

    Explore the power of Rust with "Rust Projects: Write a Redis Clone". This hands-on guide takes you through building a Redis-inspired database from the ground up, introducing key programming concepts like TCP connections, the RESP protocol, and concurrency. Following the CodeCrafters challenge, this book gradually builds your skills, making complex topics accessible. Whether you're new to Rust or looking to deepen your understanding, this project-based journey offers practical, real-world insights into modern systems programming. The book contains 40% discount code for CodeCrafters.io!

  11. Spatial Data Management with DuckDB
    Spatial Data Management with DuckDB
    From SQL Basics to Advanced Geospatial Analytics
    Qiusheng Wu

    Unlock the power of DuckDB for modern geospatial analytics. This hands-on guide helps GIS professionals master efficient spatial data management, transforming massive real-world datasets into powerful insights using SQL, Python, and DuckDB’s spatial extension. Full-color print edition is available on Amazon.

  12. Metagraph for AI Agents
    Metagraph for AI Agents
    Volodymyr Pavlyshyn

    Metagraphs for Agentic AI: Beyond Triples, Beyond HypergraphsFrom Knowledge Graphs to Knowledge ArchitecturesThe triple is not enough.Every AI engineer building agent memory hits the same wall. You model a meeting as a knowledge graph triple — and immediately lose the fact that five people were in the room, a decision was made, and that decision caused three downstream actions. You reify. You flatten. You create workarounds. And your "knowledge graph" becomes a tangle of auxiliary nodes that machines can traverse but no human can reason about.This book shows you the way out. What You'll Learn Metagraphs are graph structures where edges connect sets of nodes to sets of nodes — and where edges themselves can be referenced as first-class nodes. They are the missing data structure for AI agents that need to remember, reason, and coordinate like humans do.This book takes you on a complete journey:Hypergraphs first. You'll learn what they are, why they matter, and where they break down. You'll implement them three ways — in SQL, in LadybugDB (Cypher), and in TypeDB — so you understand the tradeoffs viscerally, not just theoretically.Then metagraphs. You'll see how metagraphs solve the fundamental hypergraph problem (edges that can't be nodes), explore RDF named graphs as a lightweight metagraph, and implement full metagraphs in the same three database paradigms with production-ready, commented code.Then the big ideas. Semantic Spacetime. Holonic systems. Human cognitive architecture mapped to graph structures. Multi-agent coordination. Promise Theory for autonomous AI networks. This is where metagraphs stop being a data structure and become an architecture for intelligence. Who This Book Is For You're a software engineer, AI researcher, or knowledge graph practitioner who builds real systems. You've used Neo4j or RDF stores. You've built RAG pipelines. You've felt the limits. You want to know what comes next.No PhD required. Every concept comes with working code in SQL, Cypher, TypeQL, SPARQL, and Python. What Makes This Book Different This isn't a theoretical monograph. It's the distillation of two and a half years of research, 130+ published articles, and hands-on implementation at the intersection of knowledge graphs and agentic AI.Every chapter bridges theory and practice. You'll read about Basu and Blanning's formal metagraph definition — and then build the schema in PostgreSQL. You'll learn Mark Burgess's Promise Theory — and then model a multi-agent coordination protocol as a six-layer promise graph. You'll understand why labeled property graphs are secretly metagraphs — and what that means for your Neo4j deployment today. 18 Chapters. Three Parts. One Argument. Part I — The Hypergraph Foundation (7 chapters): From the knowledge representation crisis through hypergraph theory to three complete database implementations.Part II — The Metagraph Solution (5 chapters): Metagraphs as the answer, RDF named graphs as a bridge, and three full metagraph implementations with detailed commentary.Part III — Theory Meets Practice (6 chapters): Semantic Spacetime, labeled property graphs, AI memory and human cognition, holonic systems, agent-to-agent interaction, and Promise Graphs for network-of-networks coordination. The Core Thesis If you want AI agents that reason like humans, you need knowledge structures that capture how humans actually organize knowledge — not as flat collections of facts, but as nested, hierarchical, context-rich, temporally-aware structures where relationships themselves carry meaning and can be the subject of further reasoning.Metagraphs are that structure. This book shows you why, and how to build with them.

  13. PostgreSQL From MVCC to Production

    Postgres woke you up at three in the morning. Same code. Same hardware. Something changed. This book explains what changed and why, starting from the one idea that makes everything else legible: MVCC.

  14. Hibernate Spring Data JPA in Depth

    Most developers treat Hibernate as a black box that turns objects into rows. This book opens the box, shows you exactly what happens inside, and teaches you how to make it work for you at scale.

  15. The C# and .NET Interview Compendium – Second Edition
    The C# and .NET Interview Compendium – Second Edition
    Interview Questions and Answers for C# and .NET Developers
    Yohan Rodriguez

    A practical, modern interview-preparation compendium for C# and .NET developers (615 manuscript pages).