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.

Ask HN: How do you keep a log of transactions against your database tables?

1 pointsby caminmccluskeyover 1 year ago
This is a problem I&#x27;ve faced a number of times, and am facing again. Basically, how do you keep a track of how items in your database are changing over time?<p>I&#x27;m familiar with the common patterns, principally: 1. Slowly changing dimensions - https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Slowly_changing_dimension 2. Change data capture patterns - https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Change_data_capture<p>One thing I fail to understand is how these patterns deal with changes to the underlying models they&#x27;re tracking (e.g. a field schema change or entirely new field).<p>To give a bit more (simplified) colour - my current use-case is tracking how ratings and prices (both Ints) are changing over time in a way that is resilient to updating the ratings I care about and the format of the prices &amp; ratings. However, you could imagine the same issues arising for logging transactions against the data etc...

no comments

no comments