Hacker News new | past | comments | ask | show | jobs | submit | more tontinton's comments login

This is great, maybe I'll try to improve bashdb


Thanks, that's something I didn't know!

I'll fix it later, and change the wording to say that these are properties of a database transaction


One day :)


Oh you're right I'll add that in later.


I would go : 1. count records 2. make copy 3. insert 4. ensure records = records + 1 5 if records != records +1 or file can be grepped, stat, filesize, then assume is corrupted and rollback to copy


Use `look` to get `O(log(n))` lookups (writes are still slow, but you could use a multi-level chain I guess). `join` does not use binary search even though it could have.


no waaay, I have never seen look before, thanks!


You're right this was purposefully left out for brevity, in dbeel it is handled.


Ah, makes sense :)


Thanks :)


Consider applying for YC's Summer 2025 batch! Applications are open till May 13

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

Search: