# database-design

Published articles for database-design.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Soft deletes affect database constraints, indexes, and application queries

DevFeed: [Soft deletes affect database constraints, indexes, and application queries](<https://devfeed.tech/articles/soft-deletes-are-a-schema-decision-that-breaks-every-query-you-write-afterwards-39592.md>)

Original publisher: [Read original article](<https://ankit-rana.com/logs/40-soft-deletes-schema-decision/>)

Author: hello@ankit-rana.com

Published: 2026-08-20T00:00:00Z

Content type: opinion

Language: en

Sources: [Ankit Rana | Mechanical Sympathy](<https://devfeed.tech/sources/ankit-rana-mechanical-sympathy.md>)

Topics: [data-processing](<https://devfeed.tech/topics/data-processing.md>), [Database](<https://devfeed.tech/topics/database.md>), [MySQL](<https://devfeed.tech/topics/mysql.md>)

Tags: [data-modelling](<https://devfeed.tech/tags/data-modelling.md>), [database-design](<https://devfeed.tech/tags/database-design.md>), [foreign-keys](<https://devfeed.tech/tags/foreign-keys.md>), [indexes](<https://devfeed.tech/tags/indexes.md>), [indexing](<https://devfeed.tech/tags/indexing.md>), [mysql](<https://devfeed.tech/tags/mysql.md>), [orm](<https://devfeed.tech/tags/orm.md>), [postgresql](<https://devfeed.tech/tags/postgresql.md>), [predicate](<https://devfeed.tech/tags/predicate.md>), [schema](<https://devfeed.tech/tags/schema.md>), [schema-design](<https://devfeed.tech/tags/schema-design.md>), [soft-delete](<https://devfeed.tech/tags/soft-delete.md>)

### AI overview

The article explains how soft deletion affects database design beyond adding a deleted_at column. It discusses duplicate-key failures, foreign-key behavior, queries that may return deleted rows, and index inefficiency, noting that PostgreSQL partial indexes help while MySQL requires a workaround.

### Source excerpt

A deleted_at column turns every future query into a conditional one, and the cost is not the extra predicate. Unique constraints stop working because the deleted row still occupies the key, foreign keys start pointing at rows the application considers gone, and any query written by someone who does not know about the column silently returns deleted data. Soft delete is a data lifecycle decision, and treating it as a boolean column is what makes it expensive.

## Consistency Models in Azure Cosmos DB: From Strong to Eventual

DevFeed: [Consistency Models in Azure Cosmos DB: From Strong to Eventual](<https://devfeed.tech/articles/consistency-models-in-azure-cosmos-db-from-strong-to-eventual-39561.md>)

Original publisher: [Read original article](<https://ankit-rana.com/logs/09-cosmosdb-consistency-models/>)

Author: hello@ankit-rana.com

Published: 2026-03-16T00:00:00Z

Content type: article

Language: en

Sources: [Ankit Rana | Mechanical Sympathy](<https://devfeed.tech/sources/ankit-rana-mechanical-sympathy.md>)

Topics: [consistency](<https://devfeed.tech/topics/consistency.md>), [Databases](<https://devfeed.tech/topics/databases.md>), [Availability](<https://devfeed.tech/topics/availability.md>), [Latency](<https://devfeed.tech/topics/latency.md>), [Replication](<https://devfeed.tech/topics/replication.md>), [Azure](<https://devfeed.tech/topics/azure.md>)

Tags: [availability](<https://devfeed.tech/tags/availability.md>), [cloud-architecture](<https://devfeed.tech/tags/cloud-architecture.md>), [consistency](<https://devfeed.tech/tags/consistency.md>), [cosmosdb](<https://devfeed.tech/tags/cosmosdb.md>), [database-design](<https://devfeed.tech/tags/database-design.md>), [databases](<https://devfeed.tech/tags/databases.md>), [distributed-systems](<https://devfeed.tech/tags/distributed-systems.md>), [latency](<https://devfeed.tech/tags/latency.md>), [linearizable](<https://devfeed.tech/tags/linearizable.md>), [pacelc](<https://devfeed.tech/tags/pacelc.md>), [replication](<https://devfeed.tech/tags/replication.md>), [semantics](<https://devfeed.tech/tags/semantics.md>), [system-design](<https://devfeed.tech/tags/system-design.md>)

### AI overview

This article explains how Azure Cosmos DB uses five consistency levels to expose PACELC trade-offs between consistency, availability, latency, and read freshness. It describes Strong consistency, bounded staleness, and Session consistency, including their operational trade-offs and suitable use cases.

### Source excerpt

Cosmos DB exposes the PACELC trade-off as five explicit levels instead of forcing a strong-or-eventual choice. Strong gives linearizable reads at the cost of write latency and availability. Session, the practical default for user-facing apps, gives read-your-writes within a session via per-partition session tokens while staying highly available.

## Building transactional voice agents at Nector

DevFeed: [Building transactional voice agents at Nector](<https://devfeed.tech/articles/building-transactional-voice-agents-at-nector-39410.md>)

Original publisher: [Read original article](<https://blog.pranshu-raj.in/posts/nector-voice-agents/>)

Author: Pranshu Raj

Published: 2026-03-07T13:39:58Z

Content type: article

Language: en

Sources: [Pranshu Raj - blog on backend systems, performance and sidequests](<https://devfeed.tech/sources/pranshu-raj-blog-on-backend-systems-performance-and-sidequests.md>)

Topics: [Model Context Protocol](<https://devfeed.tech/topics/model-context-protocol.md>), [Latency](<https://devfeed.tech/topics/latency.md>), [Multi-tenancy](<https://devfeed.tech/topics/multi-tenancy.md>), [Back end](<https://devfeed.tech/topics/backend.md>), [observability](<https://devfeed.tech/topics/observability.md>), [Database](<https://devfeed.tech/topics/database.md>)

Tags: [agents](<https://devfeed.tech/tags/agents.md>), [api](<https://devfeed.tech/tags/api.md>), [backend](<https://devfeed.tech/tags/backend.md>), [database-design](<https://devfeed.tech/tags/database-design.md>), [json-rpc](<https://devfeed.tech/tags/json-rpc.md>), [latency](<https://devfeed.tech/tags/latency.md>), [latency-optimization](<https://devfeed.tech/tags/latency-optimization.md>), [mcp](<https://devfeed.tech/tags/mcp.md>), [multi-tenancy](<https://devfeed.tech/tags/multi-tenancy.md>), [observability](<https://devfeed.tech/tags/observability.md>), [pii](<https://devfeed.tech/tags/pii.md>), [production](<https://devfeed.tech/tags/production.md>), [proxy](<https://devfeed.tech/tags/proxy.md>), [rest-api](<https://devfeed.tech/tags/rest-api.md>), [voice](<https://devfeed.tech/tags/voice.md>)

### AI overview

An engineer describes building customer-facing transactional voice agents for ecommerce at Nector. The article covers a REST-to-JSON-RPC MCP proxy that improved observability, PII control, context reduction, latency, and correctness, plus experiments that reduced one agent's p90 latency from more than 8 seconds to 2 seconds.

### Source excerpt

Building production ready voice agents, latency optimization, multi tenancy, MCP proxies - six months of building customer facing voice agents

## When Your Source of Truth is Reality

DevFeed: [When Your Source of Truth is Reality](<https://devfeed.tech/articles/when-your-source-of-truth-is-reality-38392.md>)

Original publisher: [Read original article](<https://blog.danlew.net/2025/07/01/when-your-source-of-truth-is-reality/>)

Author: Dan Lew

Published: 2025-07-01T13:00:26Z

Content type: opinion

Language: en

Sources: [Dan Lew Blog](<https://devfeed.tech/sources/dan-lew-blog.md>)

Topics: [Databases](<https://devfeed.tech/topics/databases.md>), [data](<https://devfeed.tech/topics/data.md>)

Tags: [data](<https://devfeed.tech/tags/data.md>), [database-design](<https://devfeed.tech/tags/database-design.md>), [databases](<https://devfeed.tech/tags/databases.md>), [source-of-truth](<https://devfeed.tech/tags/source-of-truth.md>)

### AI overview

This opinion article argues that databases tracking real-world entities can never be perfectly authoritative because reality changes and records may be incomplete or inaccurate. It uses a community orchestra roster and other examples to explain the limits of the single source of truth concept.

### Source excerpt

Let me tell you a story about why one should be cautious with databases that track the real world. I play trombone in a local community orchestra. For the past two years, I've been the board secretary; part of my duties is keeping a roster of who is