--- url: "https://use-the-index-luke.com/sql/dml" titulek: "Drawbacks of indexes: write slowdown" h1: "Modifying Data" popis: "Proper indexes can improve query speed hundredfold. But indexes don’t come for free." jazyk: "en" kanonicka: "https://use-the-index-luke.com/sql/dml" drobecky: [] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 05:14:48" znaku: 1543 slov: 220 kodovani: "utf-8" sha256: "c1d299a2781950c350db2e8058efc23af96cdcc312962c1e6e626f6e1b3f72d9" --- by [Markus Winand](//winand.at/home). # Modifying Data --- So far we have only discussed query performance, but SQL is not only about queries. It supports data manipulation as well. The respective commands—`insert`, `delete`, and `update`—form the so-called “data manipulation language” (DML)—a section of the SQL standard. The performance of these commands is for the most part negatively influenced by indexes. An index is pure redundancy. It contains only data that is also stored in the table. During write operations, the database must keep those redundancies consistent. Specifically, it means that `insert`, `delete` and `update` not only affect the table but also the indexes that hold a copy of the affected data. ## Contents 1. *[Insert](/sql/dml/insert)* — cannot take direct benefit from indexes 2. *[Delete](/sql/dml/delete)* — uses indexes for the `where` clause 3. *[Update](/sql/dml/update)* — does not affect all indexes of the table *You can’t learn everything in one day. Subscribe the newsletter via **[E-Mail](https://winand.at/lists)**, **[Bluesky](https://bsky.app/profile/winand.at)** or **[RSS](/blog/feed)** to gradually catch up. Have a look at [modern-⁠sql.com](https://modern-sql.com) as well.* ## About the Author Markus Winand provides insights into SQL and shows how different systems support it at [modern-sql.com](https://modern-sql.com). Previously he made [use-the-index-luke.com](https://use-the-index-luke.com), which is still actively maintained. Markus can be hired as trainer, speaker and consultant via [winand.at](https://winand.at).