Daily Edition · Page 4

THE DAILY INDEX

Technology, AI, software, security, crypto and business

GENERAL

TLDR Dev

THINGS YOU DIDN'T KNOW ABOUT INDEXES

Database indexes speed update retrieval by providing a sorted structure that bypasses slow full table scans. However, they come with trade-offs, making writes slower, consuming storage, and requiring careful implementation to avoid pitfalls like incorrect composite index order or applying functions to indexed columns. Tools like `EXPLAIN` help diagnose index usage, while specialized types such as functional indexes (for expressions) and partial indexes (for data subsets) address specific query patterns.

UNDER THE HOOD OF MDN'S NEW FRONTEND

MDN rebuilt its frontend from a React SPA to a Lit-based architecture using web components for interactivity and custom server components for static templating, solving the core problem of React being unable to reach into documentation HTML. The new setup auto-discovers and lazy-loads only the JS/CSS each page actually needs, uses Declarative Shadow DOM for pre-JS rendering, and switches from Webpack to Rspack, dropping dev server startup from two minutes to two seconds.

Register

Summary unavailable

TLDR IndexPage 4