KVStore

फ़्री
द्वारा Carlo Alberto Degli Atti | अपडेट किया गया il y a un mois | Data
लोकप्रियता

9.1 / 10

लेटेंसी

419ms

सेवा का स्तर

100%

Health Check

N/A

सभी चर्चाओं पर वापस जाएं

How many items can be gotten at once by "get items"? and is there any way to change the number?

Rapid account: Naosk 8
naosk8
il y a 7 ans

In my use case, it is better to be able to get 10+ item at once. (Maybe it seems to get maximum 10 items at once.)
So I just would like to confirm the spec of the API.
or is there any way to sort data created_at asc? I want to clean old data by small batch-like processing.

Thank you in advance.

Rapid account: Lordkada
lordkada Commented il y a 7 ans

I’ve just released a new version (0.2.7) that should answer your needs. Let me know.

Rapid account: Lordkada
lordkada Commented il y a 7 ans

Currently the number of fetched items is limited to 10 objects and they are sorted in the descending order by the created_at field.

In the next future I could extend the signature of the get items endpoint to accept these optional parameters:

  • limit (Type: integer. Default: 10) to force a greater number of items in the result
  • sort (Type: string [“asc”, “desc”]. Default “desc”) to change the result order.

Let me know if it can work for you.

चर्चा में शामिल हों - नीचे टिप्पणी जोड़ें:

नई टिप्पणियाँ पोस्ट करने के लिए लॉग इन / साइनअप करें