Home / Companies / Tiger Data / Blog / April 2023

April 2023 Summaries

5 posts from Tiger Data

Filter
Month: Year:
Post Summaries Back to Blog
Time-series graphs are powerful tools for visualizing data sequenced by time, allowing trends and irregularities to become apparent without sifting through raw data. These graphs, such as line, multi-line, smooth interpolation, area, dual-axis, and scatter plots, are used in various applications like time-series decomposition, model building, and forecasting. The article highlights how time-series data, which does not have to occur at regular intervals, can be effectively visualized with different types of graphs to emphasize specific data features. It also discusses the tools and methods for creating time-series graphs, including spreadsheet editors like Excel and Google Sheets, programming languages like Python and R, and SQL databases, with a particular focus on Timescale and Grafana for robust time-series analysis. The importance of understanding the distinctions among graphs, charts, and plots is emphasized to ensure clarity in data representation.
Apr 20, 2023 2,588 words in the original blog post.
Designing metadata tables to store series definitions can greatly enhance querying performance, especially when it comes to filtering data by time range. The proposed approach involves creating two separate tables: `series_metadata` and `assignment_buildings_devices`. The first table stores information about each data series, including its start and end times, while the second table links devices to buildings. By joining these tables with a query, users can quickly retrieve all available data series for a specific customer and time range. This approach offers several benefits, including improved performance, reduced storage space requirements, and the ability to optimize queries based on exact time ranges. Additionally, it enables quick lookups of available data series, finding previous assignments of devices and sensors, and providing information about similar parallel but distinct data series in a given time range. Overall, implementing this metadata table design can be beneficial for various use cases involving time-series data.
Apr 18, 2023 1,912 words in the original blog post.
As a creator of a database with unique time-series functionality, we explored the aspects of time-series data, including forecasting trends and performing meaningful analysis. To analyze our fictional web application's user login patterns, we updated the "users" table to log timestamps for every login, not just the latest one. This change allowed us to answer questions like what kind of devices are most frequently used by individual users and across all users, and what time of day are users the most active. With these new details logged, we can start querying the data for insights using time-series databases like Timescale. These databases help with time-series workloads in two crucial ways: handling large volumes of data and providing specialized functions to query aspects of data where time is a primary component. We demonstrated three example queries that utilize these functions, such as time_bucket() and last(), to analyze our users' usage behavioral patterns. By using these tools, we can quickly transform our ability to understand how our web application is used and make decisions faster.
Apr 13, 2023 1,482 words in the original blog post.
When a table is configured with declarative partitioning in PostgreSQL, inserting data before all child tables have been defined can result in an error message "No Partition of Relation Found for Row". This occurs because the insert operation routes data to the correct child table based on the partitioning criteria, but if that child table doesn't exist yet, the data cannot be stored. To resolve this issue, partitions can be created ahead of time, or a default partition can be added to catch orphaned data, although both methods have drawbacks. An alternative solution is to enable the TimescaleDB extension and convert the table into a hypertable, which transparently creates chunks with no locking issues. This approach eliminates the need to worry about partitions and allows for fast and safe migration from PostgreSQL-based databases like Amazon RDS to Timescale.
Apr 06, 2023 803 words in the original blog post.
AWS Lambda is a great service for building serverless applications, especially those that involve time-series data. It offers seamless scaling, efficient use of resources, and easy integration with other AWS services. The SAM CLI provides a developer-friendly way to write, test, and deploy serverless applications by describing the application infrastructure as code in a CloudFormation-esque YAML file. AWS Lambda can be used to build a variety of applications, including those that involve time-series data, such as sensor readings or log data. By using AWS Lambda with Timescale Cloud, developers can create a scalable and efficient solution for storing and analyzing large amounts of time-series data. The SAM CLI simplifies the process by allowing developers to describe their application infrastructure as code, making it easier to manage and deploy their applications.
Apr 05, 2023 3,218 words in the original blog post.