Skip to content

Instantly share code, notes, and snippets.

@lukaszkorecki
Created April 22, 2016 16:32
Show Gist options
  • Save lukaszkorecki/ba35d93965202a81a5f2333539d081ba to your computer and use it in GitHub Desktop.
Save lukaszkorecki/ba35d93965202a81a5f2333539d081ba to your computer and use it in GitHub Desktop.
r.db('rethinkdb')
.table('jobs')
.filter(function(j) {
return j('type').eq('query')
.and(j('duration_sec').gt(0.001))
.and(j('info')('query').match('jobs').eq(null))
.and(j('info')('query').match('rethinkdb').eq(null))
})
.changes()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment