Home / Companies / Tiger Data / Blog / February 2024

February 2024 Summaries

11 posts from Tiger Data

Filter
Month: Year:
Post Summaries Back to Blog
The new PostgreSQL adapter for Python, psycopg3, has shown significant improvements compared to its predecessor, psycopg2. It introduces built-in async support and an improved connection pooling feature, enhancing efficiency for asynchronous tasks. Benchmark tests reveal that psycopg3 outperforms psycopg2 in various scenarios such as data decoding efficiency, overhead of creating and returning result records, I/O stress, array decoding, copying data from standard input (STDIN) into a PostgreSQL table, batch-inserting data, and basic arithmetic operations. The async version of psycopg3 performs even better in some cases. Developers are encouraged to upgrade from psycopg2 to leverage the performance gains brought by psycopg3, especially when interacting asynchronously with their database.
Feb 28, 2024 1,084 words in the original blog post.
This tutorial guides you through creating a customizable dashboard with Grafana, a popular data visualization tool. The process involves connecting the dashboard to TimescaleDB and visualizing data from the NYC Taxi Cab tutorial. Key steps include building a new dashboard, selecting a data source, and modifying SQL queries for proper visualization in Grafana. Additionally, the tutorial introduces the use of the timeFilter function in Grafana panels. The final result is a graphical representation of rides taken on each day or within five-minute intervals, depending on the chosen time_bucket function.
Feb 26, 2024 977 words in the original blog post.
Timescale has raised $16 million in funding from Benchmark, NEA, Two Sigma Ventures, and other prominent angels to develop a new kind of time-series database designed for scalability and complex analysis. The company's product, TimescaleDB, is the first open-source time-series database built on Postgres, offering reliability, power, and ease of use while addressing the growing need for handling machine data. Since its launch last April, developers have downloaded TimescaleDB over 100,000 times, with businesses using it in industries such as manufacturing, utilities, oil & gas, mining, smart spaces, ad tech, finance, and telecom.
Feb 26, 2024 2,757 words in the original blog post.
This article provides three methods for migrating data into Timescale, a PostgreSQL-based database. The first method involves using CSV files to transfer data between databases. The second method utilizes pg_dump and pg_restore tools to create logical backups of the source database and restore them in the target database. The third method is live migration, which uses the pgcopydb tool to automate data transfer and capture ongoing changes from the source database while applying them to the target database. Each method has its own considerations and requirements that need to be addressed for a successful migration.
Feb 19, 2024 2,774 words in the original blog post.
Amazon Aurora and RDS are both managed relational database services offered by AWS. While RDS is an older service supporting various databases, Aurora offers enhanced performance and features for MySQL and PostgreSQL-compatible databases. Key differences include Aurora's better throughput, more reliable storage, additional features like Serverless and Global Tables, and its focus on leveraging native cloud capabilities. When choosing between the two, consider factors such as performance, availability, scalability, cost, and specific feature requirements. For specialized needs, using a purpose-built database like TimescaleDB may offer better performance and efficiency.
Feb 15, 2024 1,714 words in the original blog post.
Continuous aggregates are incrementally updated materialized views that function as real-time aggregations. They automatically update the results of your query in the background, ensuring that new data is incorporated and old data is adjusted based on your refresh policy. This feature addresses the problem of maintaining the most current data using continuous aggregates by filling gaps with the latest raw data from your table or view. Real-time aggregates extract the most recent yet-to-be-materialized raw data from the source table or view and add it to the recently retrieved raw data from your table or view, giving you an up-to-date view of your data for real-time analytics.
Feb 14, 2024 6,162 words in the original blog post.
The article discusses the use of .pg_service.conf file to simplify connecting to PostgreSQL databases. It explains how this file allows users to alias names with PostgreSQL connection information, making it easier to remember and connect to different database services. The author also mentions a new feature in Timescale Console that generates a configuration file for all current services in the project, which can be downloaded and used directly from psql. This feature is particularly useful for those who manage multiple databases and want an efficient way to connect to them without remembering specific hostnames or port numbers.
Feb 09, 2024 671 words in the original blog post.
Amazon Web Services (AWS) offers a fully managed database service called Relational Database Service (RDS), which can be complex to navigate in terms of pricing. The RDS PostgreSQL pricing formula is based on two main components: database instances and storage, with extra charges for backup storage, snapshot export, data transfer, technical support, Multi-Availability Zone deployments, and other features. Understanding these variables will help control cloud costs and maximize investment in RDS. The article provides a detailed breakdown of each element affecting the final price, including tips on estimating your RDS pricing, managing backup storage, optimizing data transfer, and simplifying pricing for time-series data.
Feb 07, 2024 3,829 words in the original blog post.
This guide provides an overview of Timescale's support plans for customers who use TimescaleDB in a self-hosted environment or on their own infrastructure (not managed by us). The support options available include TimescaleDB Production Support and TimescaleDB Developer Support. These support plans offer different levels of service, such as handling high-priority cases during business hours only or covering all types of issues, including those that arise during a customer's regular business hours. Customers can choose the support plan that best fits their needs based on factors like the scale and complexity of their deployments, their in-house expertise, and the level of responsibility they want to retain for managing their own infrastructure. REF: https://www.timescale.com/self-managed-support```
Feb 06, 2024 1,881 words in the original blog post.
1. Scalability: TimescaleDB is built for scalability and can handle massive amounts of time-series data efficiently. It allows horizontal scaling across multiple servers or cloud instances, which helps to manage the workload more effectively. 2. Time-series specific optimizations: Unlike traditional databases that treat all types of data equally, TimescaleDB applies special optimizations for handling time-series data. These optimizations include efficient indexing mechanisms and partitioning strategies specifically designed for managing large amounts of timestamped data. 3. SQL Compatibility: While NoSQL databases might be more fashionable these days, SQL still has a lot going for it. It includes many powerful features like multiple complex WHERE predicates (backed by secondary indexes), multiple aggregations and orderings, window functions, libraries of mathematical and statistical functions, and more. 4. Broad Data Type Support: PostgreSQL supports a broad spectrum of data types. It allows for semi-structured data (via JSON / JSONB support) but also a variety of other data types, including many numeric types, geometric types, arrays, range types, and date/time types. 5. Geospatial Support: There is often a geospatial component in the data from connected devices —physical things exist in a particular space, after all. One IoT use case we often see is asset tracking, which requires geospatial support. PostgreSQL has this capability through an extension called PostGIS. 6. Plenty of Integration Opportunities: Since TimescaleDB works just like PostgreSQL, there are many integration opportunities available because of the thing.
Feb 05, 2024 2,637 words in the original blog post.
Amazon Aurora is a database as a service offering with improved features and reliability compared to RDS, but also comes with complexities and cost calculation challenges. To reduce costs, it's essential to understand how the database is being used, optimize storage usage, and set up billing alarms. Strategies for reducing costs include optimizing non-production environments, using the correct type of I/O access, switching from Serverless to provisioned instances in production, right-sizing instance types, trimming backups, offloading large objects to Amazon S3, and optimizing SQL queries. Additionally, Timescale provides a cost-effective alternative for time-series data projects, offering infinite scalability storage tier with low-cost usage-based storage costs.
Feb 02, 2024 1,588 words in the original blog post.