Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I think there's a middle option between (1) building your application up from a low-level stream-of-events data model and (2) having your application full of logic to snap from one high-level state to another without a good data-layer audit trail:

I'm talking about indexes.

Yes, the index part of your database is amazing, because it constantly snaps itself into various states, and you know exactly why: because it needs to maintain itself in the same deterministic relationship with your models.

I think that if databases would support more complex and composable indexes, like providing the ability to index join queries, then application programmers would be more nimble and bug-free working with their data.

I've written more about this here: https://lironshapira.medium.com/data-denormalization-is-brok...



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: