News for hackers. Stuff that matters.
Re:How much faster is Redis at storing a blob of JSON compar... by rbranson on Wednesday October 02, 2019 @11:18AM (#21137374)
By default Django closes PostgreSQL connections after handling each web request. I’m not certain but what we’re probably seeing here in latency is mostly the substantial overhead in setting up a PG connection. Redis will still be faster but I’d guess the gap would be significantly tighter with persistent connections enabled.
Re:How much faster is Redis at storing a blob of JSON compar... by cortesoft on Wednesday October 02, 2019 @12:03PM (#21137934)
Really? It doesn't use a connection pool?
Re:How much faster is Redis at storing a blob of JSON compar... by jsmeaton on Wednesday October 02, 2019 @11:14PM (#21143225)
https://docs.djangoproject.com/en/2.2/ref/settings/#std:sett... pooling is available, but off by default. I suspect most new projects turn it on, but I have no data to support that.
Re:How much faster is Redis at storing a blob of JSON compar... by airstrike on Wednesday October 02, 2019 @12:38PM (#21138352)