June 2023 Summaries
14 posts from Yugabyte
Filter
Month:
Year:
Post Summaries
Back to Blog
YugabyteDB Managed is a cloud-based, enterprise-ready distributed SQL database as a service (DBaaS) that provides unparalleled scalability, enhanced security, and seamless deployment for modern cloud-native applications. It offers the widest region coverage of any distributed SQL vendor, with availability on Microsoft Azure, Amazon Web Services (AWS), and Google Cloud Platform (GCP). YugabyteDB Managed combines a comprehensive feature set, inherent resilience, and reliable backup capabilities, making it an ideal solution for businesses looking to harness the power of cloud-native applications. The service offers features such as effortless scale, robust SLAs, global availability, enhanced security, supercharged developer productivity, reliable data protection, highly resilient clusters, and simplified multi-cloud deployments. Additionally, YugabyteDB Managed now supports encryption at rest using Customer Managed Keys (CMK) on Google Cloud, providing an additional layer of data security for customers.
Jun 30, 2023
889 words in the original blog post.
I'm Plushcap, here's a summary of the text in one paragraph: YugabyteDB is a distributed SQL database that combines scalability, geo-distribution capabilities, and relational PostgreSQL front end, reducing operational complexity and providing exceptional experiences to its customer base, particularly in the fast-growing Asia Pacific region. As the first product manager in India for Yugabyte, the author aims to collaborate with local customers and shape the company's managed DBaaS product to meet their needs, leveraging the company's technical innovation, modern database approach, future-proofing technology, open source stance, and skilled team expertise to deliver exceptional outcomes.
Jun 28, 2023
718 words in the original blog post.
The conditional WHERE clause in PostgreSQL allows for dynamic filtering based on user input parameters, enabling the use of a single static SQL statement to handle various scenarios. To achieve optimal execution plans, one can either build specific queries for each scenario or utilize alternative approaches such as using complex OR conditions or concatenating different queries with UNION ALL. The choice of approach depends on the number of scenarios and the complexity of the query, with UNION ALL offering the best performance when dealing with a limited number of cases. Additionally, PostgreSQL 16 introduces the ability to check generic plans with EXPLAIN, providing more insight into the execution plan's behavior.
Jun 26, 2023
2,211 words in the original blog post.
When To Use xCluster Async Replication vs Setting Up Kafka`
xCluster is a built-in replication feature that enables asynchronous replication between two independent YugabyteDB clusters without incurring additional latency on writes, replicating transaction logs in a timeline order of updates and providing the at-least-one semantic. This method is suitable for replicating specific tables across two regions and can be used in place of Apache Kafka for stream or replicate changes between YugabyteDB and third-party software, as YugabyteDB supports change-data-capture (CDC) natively with the use of the Debezium Connector.
Jun 23, 2023
281 words in the original blog post.
The authors of the article share their experience with IO issues in a cloud infrastructure, specifically with YugabyteDB, a cloud-native database. They initially thought they had replicated the issue by oversubscribing on disk limits, but further investigation revealed that the problem was caused by delays in the cloud provider's storage subsystem, which were not immediately apparent from the virtual machine's logs or IOPS/MBPS limits. The authors used Prometheus data and 0xtools to gather more detailed information about the issue, including kernel stack backtraces, and eventually proved that the problem lay outside of the virtual machine in the cloud infrastructure. With this evidence, the cloud provider was able to identify and fix the underlying issues, which had caused delays in their storage subsystem. The authors emphasize the importance of monitoring resources even in the cloud and not relying on first-line support assumptions.
Jun 21, 2023
2,218 words in the original blog post.
In summary, PostgreSQL allows the use of `DISTINCT ON` to select the first row of each group in a query, which is useful for retrieving specific data such as the latest measure for each metric in a timeseries database or the last contract with each supplier. This approach can be more efficient than using window functions or recursive common table expressions, especially when combined with YugabyteDB's storage layer optimizations. However, it requires careful consideration of index definitions and may not be standard SQL.
Jun 20, 2023
2,204 words in the original blog post.
YugabyteDB supports composite keys and secondary indexes, which are used to uniquely identify table rows and allow efficient range scans. When creating an index, the primary key must be unique, but this is not a requirement for non-unique secondary indexes, which can lead to hotspots on tablets. To optimize query performance, it's essential to understand the cardinality of columns and order them correctly in composite indexes, and to use the correct sharding organization (hash or range) depending on the query type. YugabyteDB provides various resources, including blogs, video tutorials, and training sessions, to help users master its features and optimize their queries.
Jun 16, 2023
563 words in the original blog post.
Working at Yugabyte has been an incredible journey filled with growth, learning, and the opportunity to align with two of the company’s core values—trust and relationships. The company fosters a culture of trust within its organization, empowering employees to make decisions and take ownership of their work. Building strong relationships is also crucial to the company's culture, encouraging collaboration, open communication, and teamwork. This has created a unique work environment where employees are continually mentored to learn and improve. The company's focus on professional growth enables employees to embrace new challenges, expand their horizons, and continuously exceed their own limits. Additionally, the remote-first workplace supports work-life balance by providing employees with the freedom to work from anywhere, allowing them to better manage their personal commitments. Overall, working at Yugabyte provides a nurturing environment that promotes growth, learning, and collaboration.
Jun 15, 2023
489 words in the original blog post.
YugabyteDB is a distributed SQL database optimized for OLTP workloads, but it's not specifically designed to process streaming data or real-time analytics. Materialize, on the other hand, is a dedicated streaming database that provides real-time analytics on data streams. By integrating YugabyteDB and Materialize, organizations can benefit from the scalability of YugabyteDB and the real-time analytics capabilities of Materialize. This integration allows for fast-changing data to be handled by both databases, enabling organizations to extract insights from incoming data instantly, eliminating batch processing delays. The combined solution provides a powerful platform for complex data analytics workloads that require both real-time processing and large-scale data warehousing. By leveraging the Debezium envelope in Materialize, organizations can filter, join, and perform analytical operations on streaming data, deriving meaningful insights and taking real-time actions. The integration process involves installing YugabyteDB, setting up Kafka Schema Registry, configuring CDC Stream ID in YugabyteDB, deploying the source connector using Materialize, creating a connection for Kafka, and creating a connection for Confluent Schema Registry. Once set up, Materialize can ingest data from YugabyteDB through Debezium Envelope, enabling organizations to build more robust and scalable applications that meet the needs of various use cases.
Jun 14, 2023
1,604 words in the original blog post.
Here's a neutral and interesting summary of the text in one paragraph:
To determine which version of PostgreSQL you are running, you can use the `server_version` parameter by executing the command `\c psql (13.7, server 15.1 (Debian 15.1-1.pgdg110+1)) postgres=# show server_version;`. This will display a string that includes the major and minor version numbers of PostgreSQL, as well as additional information about the build. However, parsing this string can be tricky, especially for PostgreSQL-compatible databases like YugabyteDB, which may have different versions and formats. A more straightforward approach is to use the `server_version_num` parameter, which provides a numeric representation of the major and minor version numbers. Additionally, some databases like Amazon Aurora with PostgreSQL compatibility may require additional queries to determine their actual version. It's also essential to consider the differences between PostgreSQL-compatible databases and the real PostgreSQL software, as well as the implications for security audits and feature availability.
Jun 13, 2023
946 words in the original blog post.
You can achieve region-level fault tolerance while using row-level geo-partitioning in YugabyteDB by configuring tablespaces to have replicas in multiple regions and enabling follower reads, which allows for lower read latencies by taking advantage of local data placement on nodes. This approach is useful for "global" tables that need to be accessed from all regions and contain data without restrictions, and can be accomplished through tablespace placement policies allowing independent replication factors. However, this method also incurs higher write latency due to the impact of follower reads on network latency and quorum commit, and should only be enabled if use cases allow for stale reads, including those to the tablet leader.
Jun 08, 2023
635 words in the original blog post.
YugabyteDB Managed has introduced two key updates to enhance security, including Custom Role-Based Access Control (RBAC) for fine-grained access management, which allows companies to customize permissions at a more granular level and align with the Principle of Least Privilege. Additionally, a new "Viewer" role provides secure and controlled access for users who only need to view cluster information without the risk of unintended modifications.
Jun 07, 2023
693 words in the original blog post.
The text discusses various ways to optimize LIKE queries in PostgreSQL, including indexing with range scans for prefix patterns, using expression indexes for case-insensitive comparisons, leveraging reverse functions to transform suffix patterns into prefix patterns, and utilizing GIN indexes on trigrams for generic full-text searches. It also touches on performance and scalability considerations, emphasizing the importance of understanding execution plan complexities and optimizing storage systems like YugabyteDB accordingly.
Jun 05, 2023
1,942 words in the original blog post.
Table partitioning and sharding are two concepts used to manage large data in distributed SQL deployments. Table partitioning involves splitting large tables into smaller, independent ones based on a chosen column strategy, while sharding breaks up large tables or indexes into smaller chunks called shards that are distributed across multiple servers based on a hash or range of the primary key. In YugabyteDB, both concepts can be used, with partitioning being a user-defined SQL-level concept and sharding being an automatic storage-level concept that is performed based on the replication factor, allowing for horizontal scaling out without effort. Partitioning is often used to group data together, such as in time series workloads or row-level geo-partitioning, whereas sharding is used to distribute data across multiple nodes, separating indexes created on partitioned tables from those created on shards.
Jun 02, 2023
601 words in the original blog post.