Skip to content

Latest commit

 

History

History
126 lines (99 loc) · 8.65 KB

db.md

File metadata and controls

126 lines (99 loc) · 8.65 KB

Databases

MySQL

PostgreSQL

Tools

AI

Video tutorials

Tips & tricks

  • ALTER DATABASE db SET statement_timeout = '60s';
  • CREATE EXTENSION pg_stat_statements;
  • ALTER DATABASE db SET log_min_duration_statement = '100ms';

Install from apt

wget -qO - https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor | sudo dd of=/usr/share/keyrings/postgresql-archive-keyring.gpg

echo 'deb [ arch=amd64 signed-by=/usr/share/keyrings/postgresql-archive-keyring.gpg ] http://apt.postgresql.org/pub/repos/apt jammy-pgdg main' | sudo tee /etc/apt/sources.list.d/postgresql.list

sudo apt-get update
sudo apt-get install postgresql-client

Elasticsearch alternatives

MongoDB

Redis

Graph databases

Key-Value stores