DEV Community

Cover image for Reduct Storage 0.7.0 was released
Alexey Timin for ReductStore

Posted on

2 1

Reduct Storage 0.7.0 was released

I'm happy to announce that Reduct Storage 0.7.0 has been released yesterday.

In this release, we have introduced data querying, which allows iterating records via a time interval. This approach is significantly better than reading timestamps of records as a list and then read the records. The list could be huge. Now you can query data for a time interval and use its ID to read records.

You can try it with CURL and our demo server:

export API_TOKEN=reduct
# Take a temporal access token by using API token
curl -X POST --header "Authorization: Bearer ${API_TOKEN}" -a https://play.reduct-storage.dev/auth/refresh

export ACCESS_TOKEN=<copy it from json>
# Create a bucket (if doesnt exist)
curl -d "{\"quota_type\":\"FIFO\", \"quota_size\":10000}" \
  -X POST \
  --header "Authorization: Bearer ${ACCESS_TOKEN}"   \
  -a https://play.reduct-storage.dev/b/my_data

# Write some data
curl -d "some_data_1" \
  -X POST \
  --header "Authorization: Bearer ${ACCESS_TOKEN}"   \
  -a https://play.reduct-storage.dev/b/my_data/entry_1?ts=10000

curl -d "some_data_2" \
  -X POST \
  --header "Authorization: Bearer ${ACCESS_TOKEN}"   \
  -a https://play.reduct-storage.dev/b/my_data/entry_1?ts=20000

# Query data
curl --header "Authorization: Bearer ${ACCESS_TOKEN}"   \
    https://play.reduct-storage.dev/b/my_data/entry_1/q?ttl=30

# Read data by using the query ID
curl --header "Authorization: Bearer ${ACCESS_TOKEN}"   \
    https://play.reduct-storage.dev/b/my_data/entry_1?q=<ID>
Enter fullscreen mode Exit fullscreen mode

For more information see API Documentation

API Trace View

Struggling with slow API calls? πŸ‘€

Dan Mindru walks through how he used Sentry's new Trace View feature to shave off 22.3 seconds from an API call.

Get a practical walkthrough of how to identify bottlenecks, split tasks into multiple parallel tasks, identify slow AI model calls, and more.

Read more β†’

Top comments (0)

Sentry image

See why 4M developers consider Sentry, β€œnot bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay