Questions tagged [redisjson]

117 questions
1
vote
1 answer

How to structure python code when storing redis hashes and json

I need to read and write csv, rdb and json into redis using python. I'm considering using rejson for json support. The commands for rejson seem to be different when using rejson on json versus redis hashes for csv and rdb data. Can I have only one…
Reid K
  • 49
  • 6
1
vote
1 answer

Do I need a Jedis instance to perform an EXISTS query on a document created with JReJSON JSON.SET?

It appears from the documentation that JReJSON only supports JSON. type queries, if I want to use EXISTS on a document I created with JSON.SET do I need an instance Jedis to test for EXISTS? Using redis-cli I verified that a document I created with…
mikee
  • 335
  • 3
  • 11
1
vote
1 answer

Is it possible to attach a redis container to a docker volume?

I'm using ReJSON, which a modified_enhanced version of redis. I'm wondering if that can affect the functionment of the common command. I would persist my data, to make so, I have created a custom volume. But the data doesn't persist when I stop,…
Webwoman
  • 10,196
  • 12
  • 43
  • 87
1
vote
1 answer

Redis module ReJSON with OSS redis

I saw here that there are three kinds of redis modules from the link below. https://redislabs.com/community/redis-modules-hub/ However, I want to use ReJSON along with OSS Redis. Is it possible and has anyone tried it and if yes, is there a source…
Mukul Anand
  • 606
  • 6
  • 24
1
vote
1 answer

Querying data on json saved using ReJSON

i have saved one json using Rejson against a key,now i would like to filter/query out data using ReJson. Please let me know how can i do it ...python prefered . print("Abount to execute coomnad") response=redisClient.execute_command('JSON.SET',…
divyanayan awasthi
  • 890
  • 1
  • 8
  • 33
1
vote
0 answers

What is the best way to store and manipulate "list of json" in Redis?

Objective: The objective to be able to store list of json in Redis and to be able to manipulate it right in Redis itself. Problem Statement The problem is that manipulating a list of JSON has required us to bring all the data in the application…
iamsmkr
  • 800
  • 2
  • 10
  • 29
1
vote
1 answer

does rejson in redis support complex get query?

I am going through rejson docs jsonget and cannot find anything related to complex query as for example: JSON.GET key1 where key1.subkey1 == "test1 || key3.subkey6.subsubkey2 > 2" Does anybody know if redis supports such a logic with json output? If…
elcomendante
  • 1,113
  • 1
  • 11
  • 28
0
votes
1 answer

Issue: Redis JSON CLI SET command to update a variable in object

[ { "senderID": "64d9c926c17fd183a93d5e35", "receiverID": "64d9c92dc17fd183a93d5e39", "timestamp": "2023-08-14T07:39:45.946Z", "content": "bru", "status": "delivered", "type": "chat", "messageID": "8188946b-67e4-4d86-a927-32842361825c" }, ...…
0
votes
1 answer

Redis JSON: Search for an empty string / null

When I call the following, I get the resulting output: > FT.CREATE Results ON JSON SCHEMA $.a AS masterId TEXT $.b AS value numeric ... > > FT.AGGREGATE Results .* GROUPBY 1 @masterId REDUCE SUM 1 @value AS value LIMIT 0 100 1)…
Lovethenakedgun
  • 731
  • 6
  • 22
0
votes
2 answers

RedisJSON - Manipulating the JSON array of objects (Using Node Redis client)

This is the data [ { "senderID": "64d9c926c17fd183a93d5e35", "receiverID": "64d9c92dc17fd183a93d5e39", "timestamp": "2023-08-14T07:39:45.946Z", "content": "bru", "status": "delivered", "type": "chat", "messageID":…
0
votes
1 answer

Finding total sum by aggregating Redis JSON

I want to find total website visits by summing up the visits of individual pages. In my Redis, I have JSONs like: {'page_name': 'home', 'visit_count' : 10} {'page_name': 'add_to_cart', 'visit_count' : 7} {'page_name': 'checkout', 'visit_count' :…
0
votes
0 answers

Redis / RedisSearch slows down after some time

I have a Redis Stack running inside a podman container, that slows down for specific commands after just a couple of hours of uptime. (Redis v6.2.13, RediSearch v. 2.6.12, RedisJSON v. 2.4.7) For example, FT.SEARCH idx LIMIT 0 0 that counts entries…
0
votes
1 answer

RedisSearch return same data irrespective of query

Search Query: FT.search logIndex "@country:{Brazil}" return 3 user_id timestamp country Returned Values: instead of country Brazil it is returning the data of China. I did not find any solution to this problem or may be I am new to RediSearch.
0
votes
0 answers

RedisSearch greater than datetime query does not work

I try to query item from json storage which datetime property have to be greater than DateTime.UtcNow, here is the example: var datetime = DateTime.UtcNow; var obj = json.Get(key, path: $"$.event[?(@.Expires_At>=\"{datetime}\")]"); But it can`t…
0
votes
0 answers

Redis Index takes too long to take into account the keys I have in my redis server

I only get a part of the data that seems to correspond to the query and each time I requery the data , I get more and more results ,I am using TIMEOUT 0 but the issue persists , and I have no idea as to why Redis has this behaviour.I am not…
vincent_01
  • 13
  • 2