I have a table in RethinkDB consisting of 3 millions tweets. Each field has an epoch time, when it was inserted. What javascript query could I make to get quickly the tweets from the last 24 hours (roughly about 50k) sorted by keyword? I tried something below, but it is really slow.
`r.db('twitter').table('tweets')
.group('keyword')
.filter((row) => {
return row('epoch_time').gt(r.now().sub(86400));
})
.orderBy(r.desc('time'))
.pluck('url', 'text') `