Re: [GENERAL] Fastest simple key-value store, multiple writers, like Redis?

Поиск
Список
Период
Сортировка
От Khalil Khamlichi
Тема Re: [GENERAL] Fastest simple key-value store, multiple writers, like Redis?
Дата
Msg-id CAEK98WZt15GVQ2X-83VRraCvTR+Yt-TXe_V8ud87XwU7q4ygeA@mail.gmail.com
обсуждение исходный текст
Ответ на [GENERAL] Fastest simple key-value store, multiple writers, like Redis?  (Rob Nikander <rob.nikander@gmail.com>)
Список pgsql-general
You can keep using redis and use FDW to access it as if it was a postgres table.
It does read and write to redis and can present redis data as regular tables to you.
I never really had to choose between redis and postgres. Postgres was always for safety and persistance and redis for sharing data and for providing realtime services with fast access to data.


On Feb 2, 2017 7:02 PM, "Rob Nikander" <rob.nikander@gmail.com> wrote:
Hi,

I'm working on a project with multiple different data storage backends. I'd like to consolidate and use Postgres for more things. In one new situation we're starting to use Redis, thinking it will perform better than Postgres for a table that is updated a lot by concurrent background jobs. 

I'm skeptical of no-sql stuff for various reasons. I'm wondering what PG experts think -- is there is a way to configure Postgres to handle a table differently, so that it could compete with Redis? Or are there some workloads where it is definitely better to use an alternative data store?

This table will have a few million rows, five small columns. Rows will be updated, read, or inserted 5-10 million times a day, by concurrent processes. It operates like a key-value store in that most selects will be getting one row, and maybe updating that row. Ideally these processes could work without stepping on each other's toes and competing for locks. 

Rob


В списке pgsql-general по дате отправления:

Предыдущее
От: "Sfiligoi, Igor"
Дата:
Сообщение: [GENERAL] Re: PSQL 9.5 select for update locks too many rows when using numericinstead of int
Следующее
От: Nicolas Paris
Дата:
Сообщение: Re: [GENERAL] Fastest simple key-value store, multiple writers, likeRedis?