Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try out timescaledb #9

Open
bochecha opened this issue Jun 24, 2019 · 1 comment
Open

Try out timescaledb #9

bochecha opened this issue Jun 24, 2019 · 1 comment
Labels
enhancement New feature or request question Further information is requested

Comments

@bochecha
Copy link
Contributor

Timescaledb is a PostgreSQL extension: https://github.com/timescale/timescaledb

It seems like it could help manage the database going forward, adding things like automatic partitioning of time series.

It could even improve performance depending on the size of the data: https://blog.timescale.com/timescaledb-vs-6a696248104e/

However, there are two caveats to pay attention to:

  1. how does this work with SQLAlchemy?

    it's probably possible to make the two work nicely together, but it might take a bit of experimentation at first;

  2. we need to be very careful to stick to the open source edition

    timescaledb is open-core, and the source is available even for the proprietary additions, so we need to carefully check which of its features we use and not depend on the nonfree ones (at least not in Azafea itself, custom event handlers are free to do that if they are willing to pay for the proprietary features)

@bochecha bochecha added enhancement New feature or request question Further information is requested labels Jun 24, 2019
@wjt
Copy link
Member

wjt commented Aug 19, 2021

Timescaledb is not available on RDS.

If one wanted to stick to RDS, https://github.com/pgpartman/pg_partman also exists and is available there. Apparently recent PostgreSQL has native support for table partitioning https://www.postgresql.org/docs/current/ddl-partitioning.html but one still needs to actually create the partitions by hand, or with something like pg_partman.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants