#Database Design

Every story tagged Database Design, curated for CIOs and IT leaders — ranked by source credibility, engagement, and freshness.

33 stories · open in the command center

  • Cloud & InfrastructureHacker News3m

    Shopify replaced Redis with MySQL for inventory reservations–and it scaled

    Shopify successfully migrated inventory reservation systems from Redis to MySQL by redesigning around MySQL 8's SKIP LOCKED feature, enabling them to handle record-breaking scale (5.1M transactions/minute on Black Friday 2025) while maintaining ACID compliance and eliminating cross-system consistency failures. This unified database approach reduces operational complexity, improves data integrity between reservations and inventory ledgers, and demonstrates that traditional databases can match specialized systems when architecturally optimized. The key lesson extends beyond technology: the real bottleneck often isn't what teams initially measure, requiring deeper observability and willingness to challenge assumptions.

  • Cloud & InfrastructureHacker News3m

    Indexing the Data Lake for Online Point Queries

    Spotify's Random Access Parquet (RAP) indexing solution enables sub-second point queries on exabyte-scale data lakes by replacing expensive dependent read chains with direct key-to-location lookups, allowing organizations to serve interactive user experiences and power AI agents without maintaining separate specialized serving systems. This approach maintains data in cost-efficient cloud object storage (GCS, S3) while achieving latency comparable to traditional key-value stores, with index overhead scaling predictably (terabytes of index per petabytes of data). For IT organizations, RAP represents a strategic shift toward unified data architectures that eliminate data silos and reduce operational complexity while improving both performance and economics.

  • Software DevelopmentHacker News3m

    Do you really need separate systems when you already have Postgres?

    Organizations are over-engineering their data infrastructure by adopting multiple specialized databases (Redis, Elasticsearch, MongoDB, etc.) when PostgreSQL can handle most workloads with built-in capabilities for caching, queues, search, documents, and vector embeddings. This polyglot approach creates significant operational overhead—multiple deployment strategies, backup procedures, monitoring systems, and failure modes—that disproportionately impacts IT teams without justified business returns for the vast majority of companies that never reach true scale. Technology leaders should reconsider this "premature optimization" pattern and consolidate on Postgres-native solutions, reserving specialized systems only after rigorously proving Postgres insufficient and accepting the long-term maintenance burden.

  • Software DevelopmentHacker News3m

    Postgres transactions are a distributed systems superpower

    Co-locating workflow state and application data within the same Postgres database enables distributed systems to leverage ACID transactions to eliminate complex idempotency and atomicity challenges that typically require separate bookkeeping infrastructure. This architectural approach simplifies workflow management by ensuring database updates and workflow checkpoints commit together atomically, reducing operational overhead and the risk of data inconsistencies caused by partial failures. For IT organizations, this means reduced complexity in distributed system design, fewer specialized tools required, and stronger data consistency guarantees without the operational burden of managing separate workflow engines and outbox systems.

  • Software DevelopmentHacker News3m

    Reading the internals of Postgres: Database cluster, databases, and tables

    This article explains PostgreSQL's internal architecture, revealing how databases are logically organized through object identifiers (OIDs) and physically stored in the file system under $PGDATA directories—critical knowledge for IT leaders managing database infrastructure and performance optimization. Understanding these internals enables CIOs to better evaluate PostgreSQL deployment strategies, troubleshoot storage issues, and make informed decisions about database scaling and maintenance. For organizations relying on PostgreSQL, this foundational knowledge becomes essential as database sizes grow and operational complexity increases.

  • Cloud & InfrastructureHacker News3m

    Logical Physical Clocks and Consistent Snapshots in Globally Distributed DB [pdf]

    This research addresses a critical challenge in globally distributed databases: maintaining consistent snapshots and ordering of events across geographically dispersed systems using logical physical clocks. For CIOs managing multi-region infrastructure, this work provides foundational techniques to ensure data consistency and causality without relying on synchronized physical clocks, reducing operational complexity and improving reliability of distributed database systems. The implications are significant for organizations running mission-critical applications across multiple cloud regions or data centers, as it enables stronger consistency guarantees with lower latency and infrastructure overhead.

  • HardwareHacker News3m

    F* file system – file search that reads SSD directly bypassing OS kernel

    A novel file search tool demonstrates that direct disk I/O can outperform kernel-based file system operations by up to 2.8x on large datasets, revealing potential inefficiencies in traditional OS-level file access patterns. While this proof-of-concept has limited practical application due to security constraints and operational overhead, it highlights an important architectural consideration for IT organizations evaluating file system performance and storage optimization strategies. For enterprises managing massive file repositories, this research suggests that alternative indexing and search approaches may warrant architectural review to improve operational efficiency.

  • Software DevelopmentHacker News3m

    Do we fear the serializable isolation level more than we fear subtle bugs?

    The article examines the trade-off between implementing strict serializable isolation levels in databases—which prevent subtle concurrency bugs but incur performance costs—versus accepting weaker isolation levels that risk data inconsistencies and debugging complexity. Technology leaders must balance the business costs of potential data corruption and difficult-to-diagnose production issues against the operational overhead and latency penalties of serializable isolation. The choice has significant implications for system reliability, compliance requirements, and development velocity, requiring careful assessment of each organization's risk tolerance and workload characteristics.

  • Software DevelopmentHacker News3m

    SQLite is all you need for durable workflows

    SQLite with asynchronous replication via Litestream offers a lightweight alternative to complex orchestration tiers and shared databases for managing durable workflow state, particularly well-suited for AI agents and experimental systems that are bursty and benefit from isolated, self-contained state management. This approach reduces infrastructure complexity and operational overhead while maintaining durability at a fraction of the cost of traditional database services, though it trades some high-availability guarantees for simplicity and fault isolation. IT organizations should evaluate this pattern for appropriate workloads, reserving Postgres-based solutions only when higher availability and shared scalability requirements genuinely justify the added complexity.

  • Software DevelopmentHacker News3m

    Just Use Postgres for Durable Workflows

    PostgreSQL can serve as a simpler, more efficient alternative to external workflow orchestration systems (like Temporal and Airflow) by eliminating the need for a separate orchestrator server and leveraging the database itself for workflow coordination, checkpointing, and state management. This database-native approach provides inherent advantages in scalability (tens of thousands of workflows per second), availability (through proven Postgres replication and failover mechanisms), observability (via SQL queries on workflow tables), and security, while reducing architectural complexity and operational overhead. For IT organizations, this means consolidating workflow infrastructure onto existing Postgres deployments, reducing tooling complexity, and leveraging decades of Postgres operational expertise rather than learning specialized orchestrator platforms.

  • Software DevelopmentHacker News3m

    Quack: The DuckDB Client-Server Protocol

    DuckDB has introduced Quack, a new client-server protocol that enables multiple DuckDB instances to communicate and share data with concurrent read/write capabilities, addressing a critical gap for multi-process and distributed workloads. This development positions DuckDB as a viable alternative to traditional databases for enterprise scenarios requiring shared data access while maintaining its signature simplicity and performance characteristics. IT organizations can now leverage DuckDB across a broader range of use cases—from real-time analytics pipelines to distributed telemetry systems—without sacrificing the efficiency of in-process deployments.

  • Software DevelopmentHacker News3m

    Removing fsync from our local storage engine

    This article describes a custom single-node key-value storage engine that eliminates expensive fsync calls, achieving 64% higher throughput (190,985 vs 116,041 obj/s) by leveraging SSD-specific optimizations including pre-allocated files, O_DIRECT writes, and application-controlled journaling. For IT organizations, this represents a critical trade-off between generalized POSIX compliance and specialized performance gains—applicable only in narrowly scoped scenarios with SSD-only environments and simple KV semantics, with significant implications for storage architecture decisions in high-throughput systems. The approach demonstrates that moving durability guarantees from the filesystem layer into the application layer can unlock substantial performance improvements, but requires deep engineering investment and careful scope definition to avoid correctness pitfalls that could lead to data loss.

  • Cloud & InfrastructureHacker News3m

    Diskless Linux boot using ZFS, iSCSI and PXE

    This article demonstrates a technical approach to diskless Linux booting using ZFS, iSCSI, and PXE—a niche infrastructure capability that has limited direct business relevance for most organizations. While the technique could theoretically reduce hardware costs and simplify OS management in specialized environments (such as AI/ML workstations or lab settings), the performance trade-offs, complexity of setup, and narrow use case mean it is unlikely to become a standard enterprise practice. IT leaders should evaluate this approach only for specific scenarios where remote boot infrastructure already exists and performance requirements are flexible.

  • Software DevelopmentHacker News3m

    Full-Text Search with DuckDB

    DuckDB's full-text search (FTS) extension enables organizations to efficiently search large unstructured text datasets using advanced capabilities like stemming, stop-word removal, and BM25 relevance scoring—comparable to enterprise solutions like Elasticsearch but with simpler deployment. For IT leaders managing document repositories, email archives, or knowledge bases, DuckDB FTS offers a cost-effective alternative to specialized search platforms while maintaining integration with existing data infrastructure. However, organizations should evaluate current feature gaps (such as phrase queries, result highlighting, and vector search) against their search requirements before committing to this approach.

  • Cloud & InfrastructureHacker News3m

    Does Postgres Scale?

    PostgreSQL demonstrates exceptional scalability for workflow execution, sustaining 144K writes per second (43K workflows/second) on a single server—sufficient for 4 billion workflows daily. The WAL (Write-Ahead Log) flushing mechanism, not CPU or I/O resources, is the primary bottleneck, meaning PostgreSQL's write performance is fundamentally limited by transaction commit serialization rather than hardware constraints. This validates PostgreSQL as a viable enterprise-grade backend for durable workflow systems, potentially reducing infrastructure complexity and costs compared to specialized workflow engines.

  • Software DevelopmentHacker News3m

    Durable queues, streams, pub/sub, and a cron scheduler – inside your SQLite file

    Honker introduces embedded pub/sub, task queue, and event streaming capabilities directly within SQLite files, eliminating the need for separate message brokers like Redis while enabling atomic transactions between business data and queued tasks. This consolidates infrastructure complexity, reduces operational overhead, and provides sub-millisecond latency across seven programming languages using a single on-disk format. For IT organizations, this represents a significant opportunity to simplify data pipeline architecture, reduce total cost of ownership, and improve transaction consistency in applications currently relying on multi-system setups.

  • Software DevelopmentHacker News3m

    Postgres's lateral joins allow for quite the good eDSL

    PostgreSQL's lateral joins enable composable, type-safe query builders that overcome fundamental limitations in traditional ORMs and query builders, allowing reusable query functions and complex joins to be expressed clearly in application code while generating optimized SQL automatically. This approach addresses critical pain points in data access layers—such as composition difficulties, type safety gaps, and M2M relationship complexity—positioning lateral joins as a strategic alternative to conventional ORM abstractions. CIOs should evaluate lateral join-based query libraries (like Rel8 in Haskell) to improve data access layer maintainability, reduce technical debt from ORM brittleness, and strengthen type safety in database-intensive applications.

  • Software DevelopmentHacker News3m

    Show HN: Rocky – Rust SQL engine with branches, replay, column lineage

    Rocky is an open-source Rust-based control plane that adds enterprise data governance capabilities—including column-level lineage, schema drift detection, data contracts enforcement, and cost attribution—to existing data warehouses like Databricks and Snowflake without replacing them. For IT organizations, this addresses critical gaps in data pipeline visibility and reliability by catching data quality issues at compile-time rather than in production, while enabling safer experimentation through branching and replay features. The tool integrates with existing orchestration platforms like Dagster, reducing deployment friction and allowing teams to strengthen data governance incrementally.

  • Cloud & InfrastructureHacker News3m

    Databases Were Not Designed for This

    Traditional database architectures were built on assumptions that no longer hold in an AI-agent world—specifically that callers are deterministic, human-reviewed, and intentional. Agentic AI systems violate these foundational contracts by generating unpredictable queries, making autonomous writes based on incomplete reasoning, and operating with at-least-once retry semantics, creating new risks around performance degradation, uncontrolled data mutations, and silent failures. IT organizations must fundamentally redesign write paths, implement soft deletes and append-only logs, enforce statement timeouts, and mandate idempotency keys to safely integrate AI agents with production databases.

  • Software DevelopmentHacker News3m

    Show HN: Honker – Postgres NOTIFY/LISTEN Semantics for SQLite

    Honker brings Postgres-style pub/sub and task queue capabilities directly to SQLite, eliminating the need for separate message brokers like Redis or Celery by embedding durable queues within the database file itself. This architectural shift enables atomic transactions between business logic and queue operations, single-digit millisecond event delivery, and significantly reduced operational complexity for organizations already using SQLite. For IT leaders, this represents a potential consolidation opportunity that reduces infrastructure overhead, simplifies backup/disaster recovery strategies, and lowers the total cost of ownership for applications requiring asynchronous processing.

  • Software DevelopmentHacker News3m

    DuckDB 1.5.2 – SQL database that runs on laptop, server, in the browser

    DuckDB 1.5.2 introduces production-ready lakehouse capabilities through DuckLake v1.0 and enhanced Iceberg support, enabling organizations to consolidate data analytics across laptops, servers, and browsers with ~10% performance improvements. This release significantly reduces infrastructure complexity by allowing SQL-based analytics on diverse deployment models while maintaining enterprise-grade reliability through new Jepsen testing. IT organizations should evaluate DuckDB as a strategic alternative to traditional data warehouse architectures, particularly for cost optimization and simplified data pipeline management across edge and cloud environments.

  • Software DevelopmentHacker News3m

    Columnar Storage Is Normalization

    Columnar storage can be understood as an extreme form of database normalization where data is physically separated by column rather than row, with ordinal position serving as the implicit primary key—enabling superior performance for analytical queries while introducing tradeoffs for transactional operations. This perspective unifies data format optimization with traditional query processing operations like projections and joins, helping IT leaders understand that columnar systems aren't fundamentally different architectures but rather different physical representations of relational data with distinct performance characteristics. For organizations evaluating modern data platforms, this conceptual framework clarifies why columnar databases (like Parquet, Arrow-based systems) excel at analytical workloads and informs infrastructure decisions around analytical vs. transactional systems.

  • Software DevelopmentHacker News3m

    A type-safe, realtime collaborative Graph Database in a CRDT

    A new open-source graph database built on CRDT technology enables type-safe, real-time collaborative data management with offline-first capabilities and seamless synchronization across distributed teams. The solution provides TypeScript integration, familiar query languages (Gremlin/Cypher), and pluggable storage including Yjs for automatic conflict-free collaboration, eliminating traditional database sync complexity. This technology could significantly reduce development time for collaborative applications while enabling offline-capable, multi-user data experiences without custom conflict resolution logic.

  • Software DevelopmentHacker News3m

    What if database branching was easy?

    Copy-on-write database branching technology fundamentally changes the economics of creating isolated database environments, reducing branch creation from minutes/hours to seconds and eliminating the storage doubling costs of traditional cloning methods. This enables IT organizations to shift from maintaining brittle seed scripts to using production-realistic data for testing migrations, debugging, and preview environments, catching critical issues (like missing indexes or edge cases) that artificial seed data misses. The technology allows branches to share parent storage and only write new blocks when data changes, making the cost scale with actual changes rather than database size.

  • Software DevelopmentHacker News3m

    PgQue: Zero-Bloat Postgres Queue

    PgQue is a pure SQL-based Postgres queue solution that eliminates database bloat and performance degradation issues common in traditional queue implementations by using snapshot-based batching instead of row-level operations. Unlike alternatives requiring C extensions or external daemons, it runs on any managed Postgres platform (AWS RDS, GCP Cloud SQL, Azure, Supabase, etc.) with a single SQL file installation, making it viable for organizations seeking durable event streaming without adding distributed systems complexity. The trade-off is 1-2 second delivery latency versus microsecond-level options, positioning it for high-volume sustained workloads where stability and zero-bloat matter more than sub-second dispatch.

  • Enterprise TechHacker News3m

    PostgreSQL production incident caused by transaction ID wraparound

    A PostgreSQL production database experienced a complete write outage due to transaction ID wraparound, a silent failure mode that developed over months after autovacuum was disabled during an earlier performance incident. The system showed no warning signs—normal CPU, memory, and I/O metrics—until reaching a hard 2-billion transaction limit, at which point PostgreSQL automatically blocked all writes to prevent data corruption. This incident highlights a critical gap in standard monitoring practices, as transaction ID exhaustion cannot be detected through conventional performance metrics and typically emerges only after extended periods of normal operation.

  • Enterprise TechHacker News3m

    TigerBeetle: A Trillion Transactions [video]

    Unable to provide meaningful analysis as the article content appears to be only YouTube's standard footer text rather than substantive content about TigerBeetle or transaction processing technology. The title suggests this may be about a high-performance database or transaction processing system capable of handling trillion-scale operations, but without actual article content, strategic implications for IT organizations cannot be determined.

  • Software DevelopmentHacker News3m

    Do you even need a database?

    Benchmarking reveals that for many applications, especially at early stages, simple flat-file storage with in-memory indexing can handle significant load without database infrastructure overhead. Testing across Go, Bun, and Rust showed that loading JSONL files into hash maps delivered acceptable performance for typical workloads, challenging the default assumption that databases are always necessary. This approach reduces operational complexity, eliminates database licensing and management costs, and can defer infrastructure decisions until scale genuinely requires it.

  • Software DevelopmentHacker News3m

    MOS tech 6502 8-bit microprocessor in pure SQL powered by Postgres

    A developer has created a novelty project that emulates a 1970s-era 8-bit microprocessor entirely within PostgreSQL using stored procedures and database tables, demonstrating extreme database misuse for educational purposes. While technically interesting as a proof-of-concept, this represents an anti-pattern that violates fundamental architectural principles by implementing application logic in the database layer with no practical business value. This project serves as a cautionary example of technical experimentation that should never be replicated in production enterprise systems.

  • Software DevelopmentHacker News3m

    Distributed DuckDB Instance

    OpenDuck is an open-source implementation of distributed DuckDB architecture that enables hybrid query execution across local and cloud resources through differential storage and transparent remote database access. This technology allows organizations to seamlessly split analytical workloads between edge devices and cloud infrastructure while maintaining a unified query interface, potentially reducing data movement costs and improving query performance. The open protocol and architecture provide an alternative to proprietary cloud data warehouse solutions, giving IT organizations greater control over data placement, vendor independence, and the ability to customize execution strategies.

Browse all tags