tporadowski / redis

Native port of Redis for Windows. Redis is an in-memory database that persists on disk. The data model is key-value, but many different kind of values are supported: Strings, Lists, Sets, Sorted Sets, Hashes, Streams, HyperLogLogs. This repository contains unofficial port of Redis to Windows.
http://redis.io
Other
9.03k stars 1.1k forks source link

Inquiry about porting Redis TimeSeries module to Windows #113

Open mwnd opened 3 years ago

mwnd commented 3 years ago

I tried to port the RedisTimeSeries module to Windows but when I run the provided _testooo.py unit test, ranged query TS.RANGE doesn't always return the expected result.

I used different code branches, various compile flags, disabled optimizations, etc. but all I see is the same querying issue. I'm not sure if Redis Windows 5.0 has something to do with it.

Below code is what I modified based on 1.4.10 official branch and build in VS2019. https://github.com/mwnd/RedisTimeSeries/compare/main...1.4.10_win

Hope someone can shed some light.

tporadowski commented 3 years ago

Could you share some more details on how to run those tests?

mwnd commented 3 years ago

I didn't install RedisLab Test framework. I simply run below modified python code (from test_ooo.py) to ingest sample data. Then when I query with ts.range ooo 1000 1000, I found problems.

import random
#import pytest
import redis
#from RLTest import Env
from test_helper_classes import _get_ts_info

r = redis.Redis()
quantity = 50001
#type_list = ['', 'UNCOMPRESSED']
type_list = ['']
for chunk_type in type_list:
    r.execute_command('ts.create', 'no_ooo', chunk_type, 'CHUNK_SIZE', 100, 'DUPLICATE_POLICY', 'BLOCK')
    r.execute_command('ts.create', 'ooo', chunk_type, 'CHUNK_SIZE', 100, 'DUPLICATE_POLICY', 'LAST')
    for i in range(0, quantity, 5):
        r.execute_command('ts.add no_ooo', i, i)
    for i in range(0, quantity, 10):
        r.execute_command('ts.add ooo', i, i)
    for i in range(5, quantity, 10):  # limit
        r.execute_command('ts.add ooo', i, i)
hasegetc commented 2 years ago
samaneh-kamalian commented 1 year ago
  • @tporadowski is there a solution to run Redis TimeSeries on windows without wsl or docker?

I have same question. is there any solution?