I'm pretty sure we can go to a x3 max for the db.
How much faster is Redis at storing a blob of JSON compared to Postgres?
21–30 of 119 posts
Re: How much faster is Redis at storing a blob of JSON compared to Postgres?
#22Cached version: https://webcache.googleusercontent.com/search?q=cache:BBB9Vi...
Re: How much faster is Redis at storing a blob of JSON compared to Postgres?
#23Something is very wrong for the median read of what should be a moderate sized blob with an indexed lookup to be 8ms. The article doesn’t give enough details to really understand what is that is happening here, but I would recommend everyone to take this 14/16x report and not expect that to be the general case.
Re: How much faster is Redis at storing a blob of JSON compared to Postgres?
#24Its faster, but then, thats the point of it. Its like saying that memcache is faster than postgres. they do different things for different purposes. I still wouldn't trust redis for anything other than ephemeral storage. Most of the use cases where we use redis assume that the data will at some point go away. The places where we use postgres assume that data is permanent. Infact, we use both together, and it works re…
Edit: typos
Re: How much faster is Redis at storing a blob of JSON compared to Postgres?
#25Alas, there's not enough context or code here to even really know what's going on (or maybe I just don't know Django well enough to guess at what isn't said). It sounds like the author is comparing storing and retrieving a record with a JSON field in a PostgreSQL table versus storing and retrieving a raw string (the raw JSON) in Redis? So it's no surprise that the Redis solution is faster. Besides parsing and indexin…
Re: How much faster is Redis at storing a blob of JSON compared to Postgres?
#26Something is very wrong for the median read of what should be a moderate sized blob with an indexed lookup to be 8ms. The article doesn’t give enough details to really understand what is that is happening here, but I would recommend everyone to take this 14/16x report and not expect that to be the general case.
Re: How much faster is Redis at storing a blob of JSON compared to Postgres?
#27“Memory is faster than disk, more at 11”
Re: How much faster is Redis at storing a blob of JSON compared to Postgres?
#28Postgres is a RDMS, with transactional support and everything. While Redis is powerful, it is much simpler and focused, not nearly as comprehensive as Postgres.
TL;DR Postgres is doing a lot more heavy-lifting than Redis, it feels slow because that much of work is not necessary for simple kv lookup
Re: How much faster is Redis at storing a blob of JSON compared to Postgres?
#29Re: How much faster is Redis at storing a blob of JSON compared to Postgres?
#30Alas, there's not enough context or code here to even really know what's going on (or maybe I just don't know Django well enough to guess at what isn't said). It sounds like the author is comparing storing and retrieving a record with a JSON field in a PostgreSQL table versus storing and retrieving a raw string (the raw JSON) in Redis? So it's no surprise that the Redis solution is faster. Besides parsing and indexin…
People generally reach for Redis too quickly, IMO. Postgres is about as fast, has better tooling, and will slow down gracefully as the dataset increases, rather than evicting records as the limit is hit.
That said, I guess if you're relatively junior, it's hard to grossly misconfigure Redis, so that's a point in its favor. Somewhat like Java vs Node.js--you can write higher performance network services in Java, but it's a lot easier to make mistakes.