News for hackers. Stuff that matters.
Re:How much faster is Redis at storing a blob of JSON compar... by windsurfer on Wednesday October 02, 2019 @10:57AM (#21137138)
Why can't Postgres implement a transparent caching layer similar to Redis?
Re:How much faster is Redis at storing a blob of JSON compar... by skywhopper on Wednesday October 02, 2019 @11:03AM (#21137205)
There is a query cache. But I sorta doubt this benchmark took appropriate advantage of it. We don't know enough about how the author is running postgres to be sure. But the reported postgres numbers are pretty slow for machine-local SELECTs. Maybe Django's ORM is getting in the way?
Re:How much faster is Redis at storing a blob of JSON compar... by bradhe on Wednesday October 02, 2019 @06:55PM (#21141654)
> Why can't Postgres implement a transparent caching layer similar to Redis?

Bruh it does! That's what page pools are all about. Not to mention the query cache...

Re:How much faster is Redis at storing a blob of JSON compar... by tilolebo on Wednesday October 02, 2019 @11:09AM (#21137272)
How would you cache a write?
Re:How much faster is Redis at storing a blob of JSON compar... by YawningAngel on Wednesday October 02, 2019 @11:59AM (#21137879)
You can't cache it, but if you don't care about durability as in this case you can acknowledge it before it is fsync'd.
Re:How much faster is Redis at storing a blob of JSON compar... by dboreham on Wednesday October 02, 2019 @10:16PM (#21142932)
A write is really fast if you don't do it.