Comment

Comment by antirez

It's a good effort, but it is not the right approach IMHO. Redis is very good at producing point-in-time snapshots via RDB files, so I think the right thing to do is to create a tool, or add this feature to redis-cli, so that it is able to translate RDB files into JSON and the other way around.

Also I think that a "generic" JSON is not a good idea, since a single JSON value can be a multi million elements list or alike. The best thing to do is to create a JSON that is also specifically conceived to be both valid but to also have a single element per line, so that can be parsed much faster and with minimal state without a real JSON parser if needed.

parent antirez 15 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton