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

How many users are you expecting?

If you go over a couple 1,000 active changefeeds in 1.16, I recommend setting the `maxBatchSeconds` optional argument to `run` to something like 10 (the default is 0.5).

That change should significantly reduce the CPU overhead on the server if you have lots of idle changefeeds. Note that this does not affect how quickly changes get delivered - you will still get changes instantly.

The exact performance will of course depend on what queries you're going to run exactly, the rate of writes etc.



Thanks! I'll put together a test to see if I might run into any trouble.

(Related: the RethinkDB team is very responsive in the IRC channel. It's great to see how interactive they are with the community!)




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

Search: