Tutorials

Creating continuous aggregates with Ruby and Timescale
Continuous aggregates are designed to make queries on very large datasets run faster. TimescaleDB continuous aggregates use PostgreSQL materialized views to continuously and incrementally refresh a query in the background, so that when you run the...


A Better Way to Sort Ruby Objects: How our Put gem makes sorting by multiple conditions easy
I have a confession to make: I’ve been programming Ruby since 2004 and I still get tripped up whenever I encounter the <=> spaceship operator. As recently as this week, I’ve caught myself slowly and unconfidently working out the rules in my head: ...




Ruby Code Linting and Auto-formatting with RuboCop
Linting is the automated detection of programmatic and stylistic errors in source code. A static code analysis tool known as a linter performs this checking. A code formatter, on the other hand, is a tool that is concerned with formatting source c...

Securely Using SSH Keys in Docker to Access Private Github Repositories
If you search online for using SSH keys with Docker, to access private Github repositories, you will get a lot of search results, but the solutions you’ll find are almost all out of date, insecure, or fragmentary (i.e. they provide a small snippet...
