[Tracker] What's the fast method to get partial items after sorting.



 
I have lots of photos. I want to get part of them after sorting. I use series of queries like:
 
tracker-sparql -q "SELECT ?photo WHERE{?photo a nmm:Photo} ORDER BY ASC(?photo) OFFSET 1000 LIMIT 100"
...
tracker-sparql -q "SELECT ?photo WHERE{?photo a nmm:Photo} ORDER BY ASC(?photo) OFFSET 2000 LIMIT 100"
 
"Order" seams expensive in tracker.  
How to use index? What's the best way to do it?
 
Thanks!
-Zhenqiang


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]