ile sipariş vermek için getall kullanımı iki zaman damgası arasında id = 1 nerede kayıtlar listelemek ve son olarak zaman damgasına göre sıralamak istiyorum.RethinkDB
MySQL sorgusu şey:
Select * from test
where (timestamp between 100099323 AND 1423699323) AND id=1
order by timestamp
tekrar düşünmek veritabanında 5 milyondan fazla belge yoktur.
Select * from test where id=1 order by timestamp
ve Rethinkdb sorgusu:
Basit MySQL sorgusu için dizini kullanarak çalıştı
r.table('test').getAll(1, {index: 'id'}).orderBy({index: 'timestamp'})
ama hata alıyorum:
RqlRuntimeError: Indexed order_by can only be performed on a TABLE or
TABLE_SLICE in:
r.table("test").getAll(1, {index: "id"}).orderBy({index: "timestamp"})
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Herhangi öneri?