Hacker News new | past | comments | ask | show | jobs | submit login

Built-in notifications on writes are really cool! This is something Meteor had to implement on the application layer because MongoDB never supported it natively (and the oplog consumed by Meteor didn't really have enough context). RethinkDB gives you both oldValue and newValue which is super cool!



You can also query on them, which is really cool IMO! E.g. give me every document where the score has increased:

  r.table('games')  \
   .changes()       \
   .filter(r.row['old_val']['score'] < r.row['new_val']['score']) \
   .run(conn)
Or, give me every document for user X:

  r.table('games')  \
   .changes()       \
   .filter(r.row['new_val']['user_id'] == X) \
   .run(conn)
So you can write really cool apps out of the box without having to filter things on the client.

(BTW, we have a lot more planned for this)




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

Search: