Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.
Discussion options

You must be logged in to vote

Hi @TychoLex42 , Base will return items using fetch in ascending order, so you can indeed do this, using a variation of unix timestamps as keys.

If you simply use unix timestamps as keys, this will do the opposite of what you want -- as the first item you fetch will be the oldest item (smallest time stamp).

So what you can do, is use keys that that get smaller as unix time gets larger. So if you store items with the key scheme some really big number - unix time stamp, the first item you get from a fetch will be the most recent.

Hope that helps!

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@xeust
Comment options

@TychoLex42
Comment options

@xeust
Comment options

@chandrashekarcn
Comment options

@Sokhavuth
Comment options

Answer selected by abdelhai
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
4 participants