Hi,
Can I query the latest N records (according to their insert time)
Basically running a simple "select ... from ... limit N", only that usually this query return the first inserts, and not the last.
Alternatively, is there an efficient way to do the sorting, without running on all the data (time is a primary key).
In addition, is there a way to do "paging", by getting a cursor to a query result, and be able to get more results from the same point:
select x from y where z limit 100
and then continue the same query, similar to running with
limit 100,100
data is inserted all the time so running another query will give different results.
Thanks,