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

You can’t use log timestamps as a PK; you’ll run into non-unique entries nearly immediately.


We already established that log sifting at scale isn’t productive nor does it work for reasons outlined in the article. This was just an answer to how to do it in a smaller scale. Yeah, primary key is going to give you problems, a simple index shouldn’t but the issue is this, logs are not event sources - or shouldn’t be. The only time you should be looking is when your looking for stack trace and even then there’s better options like sentry.




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

Search: