Skip to main content
Easily integrate your app with or . Use your favorite programming language to connect to your , create and manage hypertables, then ingest and query data.

Prerequisites

To follow the steps on this page:
  • Create a target with time-series and analytics enabled.

    You need your connection details. This procedure also works for .

Connect a Rails app to your service

Every is a 100% database hosted in with extensions such as . You connect to your from a standard Rails app configured for .

Optimize time-series data in hypertables

Hypertables are tables designed to simplify and accelerate data analysis. Anything you can do with regular tables, you can do with hypertables - but much faster and more conveniently.In this section, you use the helpers in the gem to create and manage a hypertable.

Insert data your service

The gem provides efficient ways to insert data into hypertables. This section shows you how to ingest test data into your hypertable.

Reference

This section lists the most common tasks you might perform with the gem.

Query scopes

The gem provides several convenient scopes for querying your time-series data.
  • Built-in time-based scopes:
  • Browser-specific scopes:
  • Query continuous aggregates: This query fetches the average and standard deviation from the performance stats for the /products path over the last day.

features

The gem provides utility methods to access hypertable and chunk information. Every model that uses the acts_as_hypertable method has access to these methods.

Access hypertable and chunk information

  • View chunk or hypertable information:
  • Compress/Decompress chunks:

Access hypertable stats

You collect hypertable stats using methods that provide insights into your hypertable’s structure, size, and compression status:
  • Get basic hypertable information:
  • Get detailed size information:

Continuous aggregates

The continuous_aggregates method generates a class for each continuous aggregate.
  • Get all the continuous aggregate classes:
  • Manually refresh a continuous aggregate:
  • Create or drop a continuous aggregate: Create or drop all the continuous aggregates in the proper order to build them hierarchically. See more about how it works in this blog post.

Next steps

Now that you have integrated the ruby gem into your app:
You are not limited to these languages. is based on , you can interface with and using any client driver.