Best of PostgreSQLMay 2024

  1. 1
    Article
    Avatar of hnHacker News·2y

    Making a Postgres query 1,000 times faster

    The author shares their journey of optimizing a Postgres query to make it 1,000 times faster. They discovered that the query was taking longer and longer each time it was executed due to processing all rows in the table and the use of a filter instead of an index condition. By using row constructor comparisons, they were able to significantly improve the query performance.

  2. 2
    Article
    Avatar of devtoDEV·2y

    5 Cheap Ways to Host Postgres

    Discover five cheap ways to host Postgres and find the best hosting provider for your needs. Explore options like Hetzner, Sliplane, Supabase, Render, and consider alternative solutions like using JSON files or SQLite.

  3. 3
    Article
    Avatar of communityCommunity Picks·2y

    CRUD App with Prisma ORM & Node.js

    Learn how to create a CRUD App with Prisma ORM and Node.js using TypeScript and PostgreSQL. Prisma is a next-generation ORM tool that simplifies database management and access. Follow the steps to setup a Prisma project, create models, perform database migrations, and perform CRUD operations using Prisma Client.

  4. 4
    Article
    Avatar of hnHacker News·2y

    tembo-io/pgmq: A lightweight message queue. Like AWS SQS and RSMQ but on Postgres.

    PGMQ is a lightweight message queue built on Postgres. It guarantees exactly once delivery of messages within a visibility timeout and offers API parity with AWS SQS and RSMQ. It provides features like message archiving and tables can be partitioned for efficient management. You can try PGMQ for free using the Tembo docker image.

  5. 5
    Article
    Avatar of lobstersLobsters·2y

    That time PostgreSQL said "no thanks, I don't need your index"

    Explore the journey of optimizing PostgreSQL queries, from facing rejection of adding an index to eventually achieving a significant reduction in query latency by refreshing the database's stale estimates.

  6. 6
    Article
    Avatar of communityCommunity Picks·2y

    The API database architecture - Stop writing HTTP-GET endpoints

    The API database architecture eliminates the need for writing HTTP-GET endpoints by using PostgREST as a server to connect to a PostgreSQL database. It supports filtering, sorting, paging, and authentication out of the box.

  7. 7
    Video
    Avatar of t3dotggTheo - t3․gg·2y

    Postgres Doesn't Scale, Unless...

    Figma shares their experience in horizontally sharding their Postgres database to achieve nearly infinite scalability. They faced challenges such as inefficient query execution, loss of reliability and consistency properties, and the need for custom solutions. Figma developed a complex architecture using logical and physical sharding, views, and a custom query engine. The process of horizontally sharding a database is explained in detail, including the use of feature flags and shadow reads to ensure a safe migration. The article also highlights the need for further advancements in schema updates, global unique ID generation, atomic cross-shard transactions, ORM compatibility, and automated shard operations.

  8. 8
    Article
    Avatar of tigerdataTigerData (Creators of TimescaleDB)·2y

    How to Collapse Your Stack Using PostgreSQL for Everything

    The post discusses the concept of collapsing your stack by using PostgreSQL for multiple use cases. It highlights the challenges of stack sprawl with multiple databases and emphasizes the benefits of simplicity and using PostgreSQL for various workload types.

  9. 9
    Article
    Avatar of devtoDEV·2y

    The Log Is The Database

    The log is an important component in cloud-native databases as it serves as a safety measure to avoid data loss in case of failures. It allows for efficient data processing and recovery. In YugabyteDB, data is stored in LSM Trees and distributed across the network.

  10. 10
    Article
    Avatar of communityCommunity Picks·2y

    pramsey/pgsql-http: HTTP client for PostgreSQL, retrieve a web page from inside the database.

    An extension for PostgreSQL that allows users to call web services and retrieve web page content from inside the database.

  11. 11
    Article
    Avatar of freecodecampfreeCodeCamp·2y

    How to Run a Postgres Database in Azure Kubernetes Service and Integrate it with a Node.js Express Application

    Learn how to deploy a Postgres container in Azure Kubernetes Service (AKS) and integrate it with a Node.js Express application.

  12. 12
    Article
    Avatar of codemotionCodemotion·2y

    Open Source: The Awakening of PgSQL

    PostgreSQL, an open-source database, has revitalized the use of SQL in 2024. It is likened to a Jedi of databases and offers flexibility, scalability, and security. PostgreSQL has become a unified solution for both OLTP and OLAP, and its support for extensions allows for versatility in data management.

  13. 13
    Article
    Avatar of quastorQuastor Daily·2y

    How Reddit built a Metadata Store that Handles 100k Reads per Second

    This post discusses how Reddit built a metadata store that handles 100k reads per second. It explores the high level goals of the metadata store, the considerations for picking the database, and the scaling strategies used by Reddit.

  14. 14
    Article
    Avatar of tigerdataTigerData (Creators of TimescaleDB)·2y

    PostgreSQL Data Cleaning vs. Python Data Cleaning

    This post explores how PostgreSQL and TimescaleDB can be used for efficient data cleaning tasks, replacing the need for tools like Excel, R, or Python. By cleaning data directly within the database, tasks can be performed more efficiently, saving time in the long run.

  15. 15
    Article
    Avatar of appwrite_sourceAppwrite·2y

    Integrate SQL, NoSQL, Vector, Graph, or any database into your Appwrite project

    Learn how to integrate different types of databases into your Appwrite project. Explore cloud database providers, unique features of Postgres, connecting to a Redis database, and more.