【发布时间】:2013-11-02 21:41:49
【问题描述】:
假设一个 cmets 表具有以下结构:
id | author | timestamp | body
我想使用索引来有效地执行以下查询:
r.table('comments').getAll("me", {index: "author"}).orderBy('timestamp').run(conn, callback)
我可以使用其他有效的方法吗?
看起来当前索引不支持表的过滤结果。为timestamp 创建索引并将其作为提示添加到orderBy('timestamp', {index: timestamp}) 时,出现以下错误:
RqlRuntimeError:索引 order_by 只能在 TABLE 上执行。在:
【问题讨论】:
标签: rethinkdb