Questions tagged [redistimeseries]

RedisTimeSeries is a source-available Redis module that extends Redis into a Time Series Database. It is available as part of Redis Stack, Redis Enterprise Cloud, and Redis Enterprise Sofware.

33 questions
4
votes
3 answers

Is Redis TimeSeries the right tool to capture candle sticks in stock prices

I am currently trying to do a simple implementation for stock price candle sticks. Let's say we have a stock called XYZ. This stock receives a stream of prices (in no particular frequency), which (for example) looks like: XYZ: [10.2, 10.7, 12, 11…
alt-f4
  • 2,112
  • 17
  • 49
4
votes
2 answers

Redis: How do I count the elements in a stream in a certain range?

Bussiness Objective I'm creating a dashboard that will depend on some time-series and I'll use Redis to implement it. I'm new to using Redis and I'm trying to use Redis-Streams to count the elements in a stream. XADD conversation:9:chat_messages *…
Alvaro Alday
  • 343
  • 3
  • 19
2
votes
1 answer

Redis timeseries with python : ResponseError: unknown command 'TS.CREATE'

I am trying to create a timeseries in Redis using python like so: import redis connection_redis = redis.Redis(host='127.0.0.1', port=6379) connection_redis.ts().create('ts', retention_msecs=0) but I get the following error:…
The Governor
  • 302
  • 1
  • 9
2
votes
1 answer

REDIS BGSAVE Assertion failed, terminated by signal 6. (macos / python)

Fairly new to Redis (3days, ha) all working fine in gereral but getting this error. _._ _.-``__ ''-._ _.-`` `. `_. …
Ashley Reid
  • 163
  • 9
2
votes
3 answers

How to use RedisTimeSeries module in Azure Cache for Redis?

I would like to use RedisTimeSeries module (latest feature) in Redis from .net core client in Azure. I created Azure Cache for Redis (from RedisLabs) (https://azure.microsoft.com/en-us/services/cache/) standard resource in the Azure…
Raghu
  • 2,859
  • 4
  • 33
  • 65
1
vote
0 answers

RedisTimeSeries to create time chunks of data

I am new to redistimeseries. Can we use it to create... let's say 5 seconds chunks of incoming data stream with timestamp ? I tried using range queries to get the time chunks which works fine but wanted to know if we can create a rule which keeps on…
nrao
  • 31
  • 1
1
vote
1 answer

Why I failed to make setup when I was trying to install RedisTimeSeries?

I just followed what was said in README(https://github.com/RedisTimeSeries/RedisTimeSeries) to install RedisTimeSeries on Ubuntu.what I did following the document But when I tried to execute "make build", it showed the information. And I'm sure that…
1
vote
2 answers

What is the "- +" in the redis timeseries commands?

I don't get the examples that have - + in the command. I'm probably missing something that is well-known and I'm just not aware/or know where to get the info but for example at https://redis.io/docs/stack/timeseries/quickstart/ They have…
LeanMan
  • 474
  • 1
  • 4
  • 18
1
vote
0 answers

Redis Time Series Module Not Loading

I'm new to Redis and would like to play with the RedisTimeSeries module. Following the instructions I load the module using: redis-server --loadmodule /path/to/module/redistimeseries.so Obviously adjusting the path to match mine. The server starts…
ScoobaSteve
  • 543
  • 1
  • 5
  • 19
1
vote
1 answer

RedisTimeSeries TS.RANGE returns timestamps in the past

I have the following RedisTimeSeries key: 127.0.0.1:6379> ts.info ts_raw_l:TSLA 1) totalSamples 2) (integer) 771 3) memoryUsage 4) (integer) 8416 5) firstTimestamp 6) (integer) 1546405200000 7) lastTimestamp 8) (integer) 1642741200000 9)…
Jason
  • 404
  • 4
  • 14
1
vote
1 answer

How can I bulk load data in redis timeseries DB?

I was trying to insert 1M entries in redis timeseries DB (on my local machine). For this, I was using add(sourceKey, timestamp, value) method of RedisTimeSeries on every entry. Wanted to know if there's a better way to do this and if bulk load is…
ghdsjkf
  • 13
  • 2
1
vote
1 answer

How to aggregate the timestamp using redis timeseries module?

I need to create a per minute candlesticks aggregation of the price time series using the Redis time series module. I was able to aggregate most of the required columns like openPrice (using first), closePrice (using last), highPrice (using max),…
Taliat Kh
  • 11
  • 2
1
vote
2 answers

Redis Timeseries, rolling sum with LUA

I have a timeseries I want to compute a rolling sum of. My idea (which is probably suboptimal already) is to have a script to compute each data point then run it from python in a pipeline. I struggle with the script. return redis.call('TS.ADD', …
1
vote
1 answer

Redis timeseries - sum all hits

I use this python client: https://github.com/ryananguiano/python-redis-timeseries How can I sum all hits? ts = TimeSeries(client) If I understand, when I query get_total_hits(), I have to pick one of: ts.granularities OrderedDict([('1minute',…
user3599803
  • 6,435
  • 17
  • 69
  • 130
1
vote
2 answers

Caching updating time series data

I'm trying to use redis to cache time series data of 270 stocks. Every 2 or 3 seconds I get an array of stock changes (trades) that have just happened. I want to save this data in redis so I'm currently trying to think of the best (and most…
ninesalt
  • 4,054
  • 5
  • 35
  • 75
1
2 3