TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

CRUD Tables Need to Die

7 pointsby elnygrenover 3 years ago

2 comments

metalohaover 3 years ago
For a hackathon a few years back I attempted to make the InnoDB engine in MySQL employ temporal queries. In theory, any change to a row would be timestamped, and `UPDATE` and `DELETE` remapped to `INSERT`.<p>The query plan for a regular query would be modified so that all referenced rows would be restricted to the matching row with the most recent timestamp. A temporal query would be restricted to the row with the most recent timestamp that was less than or equal to the provided time.
jmnicolasover 3 years ago
The proposed solutions add complexity. Complexity make things brittle.<p>I&#x27;d think carefully before adding more complexity. Of course this is depending on what you are doing (accounting app vs a HN clone for example).