← Home ← Codex ← DEBT
Browse by Category
+ added · updated 7d
✕ Clear A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Database Bulk Operations PHP 7.0+
Process many rows in a single SQL statement or batched transaction instead of one round-trip per row, for far higher throughput.
6d ago Database intermediate
Database Query Result Streaming PHP 8.0+ 🧠 2
Processing large result sets row-by-row without loading the entire dataset into memory - essential for PHP CLI scripts handling millions of rows.
2mo ago Database intermediate
Database Indexes 🧠 3
Data structures that allow the database engine to find rows matching a condition without scanning every row — the single most impactful performance optimisation available for read-heavy PHP applications.
3mo ago Database intermediate
Diagram: Database Replication Database Replication PHP 5.0+ 🧠 1
Copying data from one database server to replicas — synchronous replication guarantees zero data loss, asynchronous is faster but risks losing recent writes on failure.
3mo ago Database intermediate
Diagram: Database Triggers Database Triggers PHP 5.0+
Stored procedures that fire automatically on INSERT, UPDATE, or DELETE — useful for audit logs and enforcing constraints, but dangerous when they become hidden business logic.
3mo ago Database intermediate
Document Stores PHP 7.0+ 🧠 2
Databases that store semi-structured documents (JSON/BSON) — MongoDB, CouchDB — flexible schema, nested data, and horizontal scaling at the cost of no joins and eventual consistency.
3mo ago Database intermediate
DSN Security & Connection String Secrets PHP 5.0+
Database credentials in connection strings must never be hardcoded — use environment variables or secrets managers, least-privilege users, and never log DSNs.
3mo ago Database intermediate
Diagram: Database Deadlocks Database Deadlocks PHP 5.0+ 🧠 1
A situation where two or more transactions hold locks the other needs, each waiting indefinitely — resolved by the database killing one transaction.
3mo ago Database advanced
Diagram: Database Indexes — Types & Trade-offs Database Indexes — Types & Trade-offs PHP 5.0+
B-Tree, hash, full-text, and partial indexes — each suited to different query patterns, with write overhead as the cost of read speed.
3mo ago Database intermediate
Database Normalisation 🧠 1
The process of structuring a relational database to reduce redundancy and improve integrity, defined through progressive normal forms (1NF through BCNF).
3mo ago Database intermediate
Diagram: Database Schema Design Database Schema Design PHP 5.0+ 🧠 5
The process of defining tables, columns, data types, constraints, and relationships — decisions made at schema design time are expensive to reverse once data is live.
3mo ago Database intermediate
Diagram: Database Transactions Database Transactions PHP 5.1+
A sequence of SQL operations treated as a single atomic unit — all succeed or all roll back — enforcing ACID guarantees.
3mo ago Database intermediate
Database Views & Materialised Views PHP 5.0+ 🧠 1
A view is a saved SELECT query presented as a virtual table. A materialised view stores the query result physically — trading freshness for query speed.
3mo ago Database intermediate
✓ schema.org compliant