Skip to content

Question: JSON GET and SET using JSON.parse and JSON.stringify #2899

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
armanhi opened this issue Feb 18, 2025 · 0 comments
Open

Question: JSON GET and SET using JSON.parse and JSON.stringify #2899

armanhi opened this issue Feb 18, 2025 · 0 comments

Comments

@armanhi
Copy link

armanhi commented Feb 18, 2025

Hi.

From what I can see in https://github.com/redis/node-redis/blob/33cdc007466b336f7f7c82669e8312d06df83a31/packages/json/lib/commands/GET.ts, both GET and SET methods are using JSON.parse and JSON.stringify.

Is it really needed? Could it be avoided? Both method are CPU-intensive and seem counterproductive to RedisJSON usage (handling JSON directly)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant