Databases
Everything on CoreConcept tagged with Databases. Explore related tags below.
Related tags
Courses
Learn how relational, NoSQL, vector, and cloud databases work — and how to pick, design, and query the right one for your application.
Articles
As relational databases grow beyond millions to billions of rows, single-table query performance degrades due to massive B-Tree index sizes and memory swapping.…
Approximate Nearest Neighbor (ANN) search is the engine behind Retrieval-Augmented Generation (RAG) and semantic search. Performing exact k-Nearest Neighbors (k…
Relational databases like PostgreSQL excel at Online Transaction Processing (OLTP)—handling frequent single-row reads, updates, and inserts with strict ACID gua…
At the heart of every database system lies a Storage Engine that determines how data is written to disk, indexed, and retrieved. Relational databases like Postg…
In-memory caching is an essential component of high-throughput web architectures, reducing database read load and accelerating API response times. When selectin…
Selecting the right primary database is one of the most critical architectural decisions for software teams. PostgreSQL is the world's most advanced open-source…
A multi-tenant analytics platform partitions incoming events by tenant_id, hashed onto 16 shards — a design that looked perfectly balanced in every load test. T…
A URL shortener's redirect endpoint, GET /r/{code}, looks purely read-heavy — billions of redirects against a handful of short codes created per second. But eve…
A shopping cart write to cart-77 needs to land on enough replicas that a later read is guaranteed to see it — but "enough" is a number you choose, and the numbe…
A user changes their display name, refreshes the page a second later from a phone on a different network, and sees the old name. Nothing crashed. No request fai…
A shopping cart must remember items, so the product cannot be literally stateless. The useful design question is where that state lives. Keep the cart inside on…
An order API can return responses all day and still charge the wrong amount. It can be temporarily unreachable while every stored order remains safe. It can fai…
"Just use Postgres" is good advice until a measured access pattern needs a specialist. A checkout might use Redis for the cart, SQL for order and inventory, a v…
Semantic search, RAG, and agent memory depend on the same primitive: store embeddings and retrieve nearby vectors with the filters your product requires. The ma…
A Redis GET can be constant-time and still miss its latency target when a large Lua script is ahead of it, the client opens a new TLS connection, or the value t…
A selective lookup that once scanned most of a large table can become an index walk plus a few heap fetches — often the difference between a snappy API and a ti…
The CAP theorem states that when a distributed system is partitioned, it cannot guarantee both linearizable consistency and availability for every request. Cons…
This guide is for engineers who know basic SQL and key-value access but need to justify a production database choice. By the end, you can evaluate one checkout …
Two support agents both open the same account balance, both see $100, both independently process a $50 withdrawal, and the balance ends up at $50 instead of $0 …
A team says "we need to shard the database" when the actual measured problem is a 200GB events table that scans slowly, or "let's add replication" when what the…
"The index exists, why is this query still slow?" is one of the most common database escalations — and the answer is almost always sitting in EXPLAIN ANALYZE ou…
Relational SQL databases store data in rigid tables linked by foreign key relationships. When querying highly connected domain data — such as social networks, r…
Modern digital applications generate massive streams of user event logs, IoT sensor metrics, and financial clickstreams. Processing billions of event records pe…
Primary relational databases (like PostgreSQL or MySQL) execute disk I/O and query compilation for every read query. As application concurrency grows to thousan…
Single-region database deployments create single points of failure (SPOFs). If an entire cloud availability zone or geographic region experiences a fiber cut, p…
When relational MySQL databases reach multi-terabyte scale, single-instance hardware limits are breached. Vertical scaling (upgrading CPU cores and RAM) becomes…
Database queries executing against multi-million row tables suffer severe latency spikes if the database storage engine must scan every page file on disk sequen…
Modern IoT fleets, financial market feeds, server telemetry pipelines, and application metrics generate millions of append-only time-stamped events every second…
Adding full-text search capabilities to modern web and mobile applications often starts with simple SQL LIKE '%query%' clauses or PostgreSQL tsvector indexes. A…
Establishing a fresh TCP connection to a PostgreSQL database server requires a 3-way TCP handshake, TLS certificate negotiation, process fork (backend process c…
As web applications scale to hundreds of thousands of active users, querying relational databases for every page view creates severe I/O bottlenecks and high da…
As database tables grow to tens of millions of rows, un-optimized PostgreSQL queries cause sudden CPU spikes, connection pool exhaustion, and elevated API tail …
Cloud Spanner and MySQL agree on almost nothing below the SQL syntax layer — Spanner shards data across nodes by key range, replicates synchronously across regi…
Want a curated collection instead? Topic hubs group the best content by subject.
Browse Topics