Skip to content

Instantly share code, notes, and snippets.

@dmagda
dmagda / outage_demo.md
Last active December 20, 2022 16:01
YugabyteDB Outage Demo

YugabyteDB Outage Demo

Use this demo to showcase how YugabyteDB handles failures.

Start Cluster

Create the custom network:

docker network create custom-network
@dmagda
dmagda / mock_data_generation_postgres.md
Last active May 24, 2023 05:29
Mock data generation with built-in database capabilities

Mock data generation with built-in database capabilities

Relational databases such as PostgreSQL can do much more than store and return your application records. Those databases usually come with comprehensive compute capabitilies.

In this short note, let's review the generate_series function of PostgreSQL, then can generate mock data of various complexity.

  1. Create a sample table for time-series data:
    create table sensor (
      id int,
@dmagda
dmagda / brin_btree_demo.md
Last active October 24, 2022 03:20
A little demo for the BRIN vs. B-tree index in PostgreSQL
@dmagda
dmagda / workshop_multi_region_deployments.md
Last active February 5, 2023 09:00
[Workshop] YugabyteDB Multi-Region Deployments

Startup Scripts for YugabyteDB and PostgreSQL

Start a database instance within a few seconds on you machine.

PostgreSQL

Start in basic configuration:

docker network create custom-network
@dmagda
dmagda / table_partitioning_tech_talk.md
Last active July 1, 2022 17:49
Demo scripts for the Table Partitioning Tech Talk
version: "3.6"
services:
yb-master:
image: yugabytedb/yugabyte:latest
container_name: yb-master-n1
volumes:
- yb-master-data-1:/mnt/master
command: [ "/home/yugabyte/bin/yb-master",
"--fs_data_dirs=/mnt/master",