TimescaleDB VS pgx

Compare TimescaleDB vs pgx and see what are their differences.

TimescaleDB

An open-source time-series SQL database optimized for fast ingest and complex queries. Packaged as a PostgreSQL extension. (by timescale)

pgx

PostgreSQL driver and toolkit for Go (by jackc)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
TimescaleDB pgx
82 71
16,500 9,488
1.0% -
9.8 9.1
2 days ago 6 days ago
C Go
GNU General Public License v3.0 or later MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

TimescaleDB

Posts with mentions or reviews of TimescaleDB. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-10-11.
  • TimescaleDB: An open-source time-series SQL database
    1 project | news.ycombinator.com | 6 Feb 2024
  • Google Cloud Spanner is now half the cost of Amazon DynamoDB
    2 projects | news.ycombinator.com | 11 Oct 2023
    Don't forget PostgreSQL extensions. For something like a chat log, TimescaleDB (https://www.timescale.com/) can be surprisingly efficient. It will handle partitioning for you, with additional features like data reordering, compression, and retention policies.
  • How to setup Postgres master-master cluster.
    1 project | /r/sysadmin | 5 Sep 2023
    Offboard it to Postgres specialists like https://www.timescale.com/
  • How to Choose the Right MQTT Data Storage for Your Next Project
    8 projects | dev.to | 23 Jul 2023
    TimescaleDB{:target="_blank"}: an extension of PostgreSQL that adds time-series capabilities to the relational database model. It provides scalability and performance optimizations for handling large volumes of time-stamped data while maintaining the flexibility of a relational database.
  • Why does the presence of a large write-only table in a PostgreSQL database cause severe performance degradation?
    1 project | /r/PostgreSQL | 2 Jul 2023
    Have some experience with https://www.timescale.com in this context
  • Opinions and Suggestions for PostgreSQL Extension under Development
    3 projects | /r/PostgreSQL | 29 May 2023
    What about getting in touch with commercial organisations that have products/services based on PostgreSQL? For example Timescale, EDB, and Citus Data, or really any hosting provider that offers a managed PostgreSQL service.
  • I have to do about a million inserts on a table every day that is also under very frequent reads. How should I do that?
    1 project | /r/PostgreSQL | 20 May 2023
    There is Timescale.
  • Ask HN: It's 2023, how do you choose between MySQL and Postgres?
    7 projects | news.ycombinator.com | 11 May 2023
    Friends don't let their friends choose Mysql :)

    A super long time ago (decades) when I was using Oracle regularly I had to make a decision on which way to go. Although Mysql then had the mindshare I thought that Postgres was more similar to Oracle, more standards compliant, and more of a real enterprise type of DB. The rumor was also that Postgres was heavier than MySQL. Too many horror stories of lost data (MyIsam), bad transactions (MyIsam lacks transaction integrity), and the number of Mysql gotchas being a really long list influenced me.

    In time I actually found out that I had underestimated one of the most important attributes of Postgres that was a huge strength over Mysql: the power of community. Because Postgres has a really superb community that can be found on Libera Chat and elsewhere, and they are very willing to help out, I think Postgres has a huge advantage over Mysql. RhodiumToad [Andrew Gierth] https://github.com/RhodiumToad & davidfetter [David Fetter] https://www.linkedin.com/in/davidfetter are incredibly helpful folks.

    I don't know that Postgres' licensing made a huge difference or not but my perception is that there are a ton of 3rd party products based on Postgres but customized to specific DB needs because of the more liberalness of the PG license which is MIT/BSD derived https://www.postgresql.org/about/licence/

    Some of the PG based 3rd party DBs:

    Enterprise DB https://www.enterprisedb.com/ - general purpose PG with some variants

    Greenplum https://greenplum.org/ - Data warehousing

    Crunchydata https://www.crunchydata.com/products/hardened-postgres - high security Postgres for regulated environments

    Citus https://www.citusdata.com - Distributed DB & Columnar

    Timescale https://www.timescale.com/

    Why Choose PG today?

    If you want better ACID: Postgres

    If you want more compliant SQL: Postgres

    If you want more customizability to a variety of use-cases: Postgres using a variant

    If you want the flexibility of using NOSQL at times: Postgres

    If you want more product knowledge reusability for other backend products: Postgres

  • Help with timeseries data
    2 projects | /r/Database | 10 May 2023
    TimescaleDB is Postgres with extensions to automatically partition tables for fast processing of time series data.
  • Postgres for time-series data
    1 project | news.ycombinator.com | 2 May 2023

pgx

Posts with mentions or reviews of pgx. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-22.
  • Setting up a Database Driver, Repository and Implementation of a transaction function for your Go App
    2 projects | dev.to | 22 Apr 2024
    Sometimes, backend developers tend to opt for an ORM library because it provides an abstraction between your app and the database and thus there is little or no need to write raw queries and migrations which is nice. However, if you want to get better at writing queries (SQL for example), you need to learn how to build your repositories without an ORM. To open a database handle, you can either do it directly from the database driver or do it from database/sql with the driver passed into it. I will be opening the connection with database/sql together with pgx which is a driver and toolkit for PostgreSQL. Walk with me.
  • The DDD Hamburger for Go
    2 projects | dev.to | 6 Jan 2024
    The infrastructure layer contains the concrete implementation of the repository domain interface ActivityRepository in the struct DbActivityRepository. This repository implementation uses the Postgres driver pgx and plain SQL to store the activity in the database. It uses the database transaction from the context, since the transaction was initiated by the application service.
  • Building RESTful API with Hexagonal Architecture in Go
    21 projects | dev.to | 27 Sep 2023
    For building the RESTful Point of Sale service API, I've considered and selected a combination of technologies that would work seamlessly together. For handling HTTP requests and responses, using the Gin HTTP web framework would make sense because I think it seems complete and popular among Go community too. To ensure data integrity and persistence, I'm using PostgreSQL database with pgx as the database driver, the reason I choose PostgreSQL because it is the most popular relational database to use in production and offers efficient Go integration. I'm also implementing caching using Redis with go-redis client library, which provides powerful in-memory data storage capabilities.
  • Working with postgres in GO.
    2 projects | /r/golang | 3 Jul 2023
    If you are willing to commit to working only with Postgres, I highly recommend pgx. Be sure you get the latest version github.com/jackc/pgx/v5. This gives you the full power of interacting with Postgres without going through an intermediate lowest-common-denominator library.
  • How to Use Iris and PostgreSQL for Web Development
    6 projects | dev.to | 2 Jul 2023
    It uses pg package and pgx driver under the hood.
  • Could I get a code review?
    11 projects | /r/golang | 1 Jun 2023
    Starting off, is there any reason you're calling out to the CLI, instead of just using a Postgres driver like pgx? Shelling out to the command line should always be a last resort where possible as a software engineer.
  • Why elixir over Golang
    10 projects | /r/elixir | 29 May 2023
    For maintaining state I use PostgreSQL. Driver: https://github.com/jackc/pgx (I use the pgxpools) Along with Sqlc for generating database models and allowing me to focus on just building queries in DBeaver. https://sqlc.dev/
  • Make psql display settings on login
    1 project | /r/PostgreSQL | 24 May 2023
    An example of what I'm looking for can be found here https://github.com/jackc/pgx/wiki/Getting-started-with-pgx-through-database-sql/c9f798b4d9a500fcf93931df2464af969d68f516
  • Zig now has built-in HTTP server and client in std
    3 projects | news.ycombinator.com | 18 May 2023
    Except pgx recommends using their native interface, not database/sql, for performance and extra features [0], so it's not that simple in practice.

    [0]: https://github.com/jackc/pgx#choosing-between-the-pgx-and-da...

  • Go Roadmap
    2 projects | /r/golang | 5 May 2023
    pgx is “PostgreSQL driver and toolkit for Go”. Take a look at https://github.com/jackc/pgx

What are some alternatives?

When comparing TimescaleDB and pgx you can also consider the following projects:

ClickHouse - ClickHouse® is a free analytics DBMS for big data

sqlx - general purpose extensions to golang's database/sql

promscale - [DEPRECATED] Promscale is a unified metric and trace observability backend for Prometheus, Jaeger and OpenTelemetry built on PostgreSQL and TimescaleDB.

GORM - The fantastic ORM library for Golang, aims to be developer friendly

TDengine - TDengine is an open source, high-performance, cloud native time-series database optimized for Internet of Things (IoT), Connected Cars, Industrial IoT and DevOps.

pq - Pure Go Postgres driver for database/sql

gomock - GoMock is a mocking framework for the Go programming language.

temporal_tables - Temporal Tables PostgreSQL Extension

go-sql-driver/mysql - Go MySQL Driver is a MySQL driver for Go's (golang) database/sql package

pgbouncer - lightweight connection pooler for PostgreSQL

sqlc - Generate type-safe code from SQL