/plushcap/analysis/hasura/things-you-wish-you-knew-about-postgresql-for-building-an-app

Things you wish you knew about PostgreSQL for building an app

What's this blog post about?

This text discusses various tips and best practices for working with PostgreSQL when building an application. It covers data types, primary key selection, JSON support, default timestamps, use of schemas and extensions, indexing, database users and sessions, connection strings, views, version control of schema changes, and transactional DDL. The author emphasizes the importance of choosing the right data type for columns, using appropriate primary keys, leveraging PostgreSQL's JSON support, making most columns NOT NULL, creating default timestamps, utilizing schemas and extensions, being judicious with indexes, managing database users and sessions, understanding connection strings, using views to transform data, version controlling schema changes, and employing transactional DDL for complex updates.

Company
Hasura

Date published
June 21, 2021

Author(s)
Praveen Durairaju

Word count
1303

Hacker News points
None found.

Language
English


By Matt Makai. 2021-2024.