Hacker Afternoon Tea
Author

Hacker Afternoon Tea

You might find something interesting here ^_^

124
Articles
0
Likes
0
Views
0
Comments
Recent Articles

Latest from Hacker Afternoon Tea

100 recent articles max
Hacker Afternoon Tea
Hacker Afternoon Tea
Mar 24, 2022 · Databases

Quick Guide: Testing Citus Distributed PostgreSQL on Kubernetes with Distributed, Co‑located, Reference, and Columnar Tables

This tutorial walks through setting up a Citus‑enabled PostgreSQL cluster on Kubernetes, creating distributed tables, using co‑location and reference tables for high‑performance joins, and comparing row‑based versus columnar storage with concrete SQL commands and performance metrics.

CitusCo-locationDistributed Tables
0 likes · 11 min read
Quick Guide: Testing Citus Distributed PostgreSQL on Kubernetes with Distributed, Co‑located, Reference, and Columnar Tables
Hacker Afternoon Tea
Hacker Afternoon Tea
Mar 22, 2022 · Databases

Quick Start Guide: Building a Multi‑Tenant Ad Analytics Database with Distributed PostgreSQL (Citus)

This tutorial walks through setting up Citus, creating and distributing PostgreSQL tables for a multi‑tenant ad‑analytics application, loading sample data, executing CRUD and analytical queries, and extending the approach to real‑time GitHub event analysis, demonstrating end‑to‑end database operations in a distributed environment.

CitusMulti‑TenantPostgreSQL
0 likes · 14 min read
Quick Start Guide: Building a Multi‑Tenant Ad Analytics Database with Distributed PostgreSQL (Citus)
Hacker Afternoon Tea
Hacker Afternoon Tea
Mar 21, 2022 · Databases

Choosing the Right Distribution Column in Citus: Best Practices for Efficient Queries

This article explains how to select an optimal distribution column for Citus tables by first identifying whether your workload is multitenant SaaS or real‑time analytics, then applying concrete guidelines such as using high‑cardinality tenant or entity IDs, avoiding timestamps, ensuring uniform distribution, and leveraging co‑location for better query performance.

CitusPostgreSQLdata co-location
0 likes · 17 min read
Choosing the Right Distribution Column in Citus: Best Practices for Efficient Queries
Hacker Afternoon Tea
Hacker Afternoon Tea
Mar 20, 2022 · Databases

Official Guide to Installing a Distributed PostgreSQL (Citus) Cluster

This step‑by‑step guide shows how to set up both single‑node and multi‑node Citus clusters on Docker, Ubuntu/Debian, and Fedora/CentOS/Red Hat, covering repository addition, package installation, configuration of shared_preload_libraries, database initialization, worker node registration, and verification commands.

CentOSCitusDocker
0 likes · 14 min read
Official Guide to Installing a Distributed PostgreSQL (Citus) Cluster
Hacker Afternoon Tea
Hacker Afternoon Tea
Mar 18, 2022 · Backend Development

Building a Distributed Multi‑Tenant Database with Django, Postgres, and Citus

This guide demonstrates how to build a distributed multi‑tenant database using Django with Postgres and Citus, covering installation, supported Django versions, model modifications via mixins or inheritance, middleware for tenant context, automatic composite foreign keys, and the library’s API with concrete code examples.

CitusDjangoMulti‑Tenant
0 likes · 8 min read
Building a Distributed Multi‑Tenant Database with Django, Postgres, and Citus
Hacker Afternoon Tea
Hacker Afternoon Tea
Mar 17, 2022 · Databases

Building Scalable Time‑Series with Distributed PostgreSQL (Citus) – Official Example

This guide shows how to combine PostgreSQL declarative time‑range partitioning with Citus distributed sharding to create a scalable time‑series database, covering table creation, distribution, automatic monthly partition generation, columnar archiving, maintenance with pg_cron, and performance benefits such as faster inserts, queries, and data expiration.

CitusPostgreSQLTime Series
0 likes · 11 min read
Building Scalable Time‑Series with Distributed PostgreSQL (Citus) – Official Example
Hacker Afternoon Tea
Hacker Afternoon Tea
Mar 16, 2022 · Databases

Building a Real-Time Dashboard with Distributed PostgreSQL (Citus) – Official Example

This tutorial shows how to use Citus, a distributed PostgreSQL extension, to ingest immutable HTTP event logs, shard them by site_id, create real‑time and pre‑aggregated tables, schedule roll‑up jobs, handle data expiration, estimate distinct counts with HyperLogLog, and store unstructured JSONB counters for a low‑latency analytics dashboard.

CitusJSONBPostgreSQL
0 likes · 16 min read
Building a Real-Time Dashboard with Distributed PostgreSQL (Citus) – Official Example
Hacker Afternoon Tea
Hacker Afternoon Tea
Mar 15, 2022 · Databases

Migrating Existing Applications to a Distributed PostgreSQL (Citus) Cluster

This guide walks through planning a distribution strategy, adding and back‑filling a distribution key, preparing a development Citus cluster, updating schema and queries for multi‑tenant workloads, securing connections, monitoring cross‑node traffic, and finally migrating production data using either pg_dump/pg_restore for small databases or Citus Warp for large deployments.

Multi‑Tenantdistributed-databasemigration
0 likes · 20 min read
Migrating Existing Applications to a Distributed PostgreSQL (Citus) Cluster