postgres extension citus - ghdrako/doc_snipets GitHub Wiki

Citus Data, part of Microsoft, supports multiple paradigms for PostgreSQL-based sharding offered as open source software

Citus is an extension to PostgreSQL that enables distributed SQL queries across multiple nodes. Creating a PostgreSQL shard infrastructure with Citus involves the following steps:

  • Install PostgreSQL on each node
  • Install Citus on each node

Citus to komercyjna rozszerzenie postgresa. Zasada polega na agresywnym podziale danych na wiele instancji oraz jednoczesnym wykorzystaniu procesorów i dysków wszystkich tych instancji (sharding). Citus zarządza dystrybucją zapytań, ale nie utrzymywaniem dodatkowych instancji PostgreSQL. Firma Citusdata został przejęty przez Microsoft, który obecnie oferuje go w Azure. W 2022 roku całość kodu przeszła na licencję otwartą. Zysk z wydajności może być imponujący, ale uwaga: niektóre zapytania bardzo źle nadają się do sharding-u.