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

Another pattern to avoid "worthless" writes is using statistical sampling. I.e. if you have votes in the >100.000 range, generate a random number p in [0, 1], and only perform a write if p < 0.01 - when reading votes, multiply by 100 etc. Of course, you have to assess individually if its feasible for your operation, hence the "worthless".


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

Search: