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

why a separate id and rowid? why not just rowid and data?



"The rowid is implicit and autoassigned, but we want developer-friendly IDs." maybe

But of course, the obvious solution is to have one table with just ROWID and data, and another table with the friendly IDs! If you time the insertions really well, then the ROWIDs in both tables with match and voilà.





Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: