'Performance of NodeJS RedisJson vs FlatFiles+JSON parsing
Originally I was using flat files + JSON parsing to store/share an array of 1000 json objects. On a whim i tried storing it using Redis JSON, thinking there might be some magic and saving some processing cycles on not having to stringify/parse. The results?
Redis set (using Node redis-json library): 0.15s - 0.8s (different datasets of 1000 json objs)
JSON.stringify + file write(~57k of data): .002 - .004s
Of course, i would gain a lot of performance back if i'm just manipulating a couple of objects in the array, but still i was quite surprised. Is this type of performance something one would expect when dealing with large objects/arrays in RedisJSON? Or am i doing something wrong?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
