Home / Companies / QuestDB / Blog / March 2024

March 2024 Summaries

2 posts from QuestDB

Filter
Month: Year:
Post Summaries Back to Blog
QuestDB is an open-source time-series database designed for high-performance workloads, emphasizing ultra-low latency and high ingestion throughput. It supports SQL and Parquet, ensuring data portability without vendor lock-in. The guide provides best practices for writing efficient SQL queries, particularly focusing on the SELECT statement, to enhance performance and reduce resource usage. Key recommendations include specifying only necessary columns to minimize data transfer, filtering queries by designated timestamps to optimize data retrieval, and aligning table partitions with typical query patterns for improved efficiency. It also advises on the strategic use of JOINs, symbols for repetitive strings, and the importance of using the EXPLAIN command to understand query execution. Additionally, it highlights the significance of applying filters early in query structures and suggests applying ORDER BY at the end of queries to improve processing time. The guide underscores the importance of staying updated with the latest database versions to leverage performance enhancements and suggests utilizing SQL extensions specific to QuestDB for further optimization.
Mar 11, 2024 2,360 words in the original blog post.
QuestDB, an open-source time-series database, excels in handling demanding workloads by offering ultra-low latency and high ingestion throughput, along with native support for Parquet and SQL. During the One Billion Row Challenge (1BRC), a remarkable optimization technique emerged, significantly enhancing Java code performance by parsing one billion temperature readings in less than a second. Quân Anh Mai's innovative solution, which utilized a technique known as "SIMD Within A Register" (SWAR), replaced the conventional approach of using if statements and loops with a sequence of 18 Arithmetic Logic Unit (ALU) operations, including bitwise shifts and arithmetic operations. This method efficiently parsed CSV input by aligning digits, transforming ASCII characters into digit values, and applying mathematical operations to convert these into accurate temperature readings, all without explicit conditionals, thus becoming a pivotal element in the top solutions of the contest.
Mar 07, 2024 3,879 words in the original blog post.