December 2023 Summaries
5 posts from PlanetScale
Filter
Month:
Year:
Post Summaries
Back to Blog
schemadiff` is an open-source command-line tool to generate diffs between two MySQL databases, built as a thin wrapper around Vitess's `schemadiff` library. It can be used to validate, normalize, and diff schemas loaded from various sources, including the standard input, file system, or MySQL database. The tool supports MySQL 8 syntax and is released under Apache 2.0 license. With `schemadiff`, users can easily compare two schemas and generate the necessary DDL to execute to get them in sync, making it useful for workflow enabling zero downtime schema migrations like PlanetScale's database branching.
Dec 18, 2023
467 words in the original blog post.
Pscale ping is a new CLI command that helps determine the optimal region for a database based on location, making it easier to choose a region with minimal latency.`
`The command lists the latency for every region based on the user's location, allowing developers to find the closest region to their development environment or application deployment location.`
`Pscale ping is designed to be used from within the same environment as the application, providing accurate results and minimizing potential issues.
Dec 13, 2023
172 words in the original blog post.
PlanetScale has launched support for foreign key constraints in its database service, which was a significant technical challenge to overcome. The company had to address challenges related to branching and deploy requests, query serving, Online DDL, and handling reverts, among others. To tackle these issues, PlanetScale introduced new features such as internal operations tables, rename_table_preserve_foreign_key server variable, and improved locking mechanisms. While the support for foreign key constraints is still limited to unsharded environments, the company expects to expand its capabilities in the future. The launch of foreign key constraint support marks an important milestone for PlanetScale, and it welcomes users to try out the new feature during the open beta period.
Dec 05, 2023
7,255 words in the original blog post.
You can now use foreign key constraints in PlanetScale databases, allowing for more flexibility and integrity in your data models without requiring reworking existing applications or frameworks. This feature is available in beta on a per-database level for all unsharded databases, with sharded database support planned for next year. With the introduction of foreign key constraints, developers can now use PlanetScale out of the box with their favorite ORM or framework that uses foreign key constraints by default, without needing to make changes. Additionally, users can import existing MySQL or MariaDB databases with foreign key constraints into PlanetScale using a database import tool, and test the feature with various popular ORMs and frameworks.
Dec 05, 2023
490 words in the original blog post.
HTAP databases aim to accommodate both transactional and analytical tasks within a single system, but this leads to a complex environment where the database must juggle the demands of high-speed transaction processing and resource-intensive analytical queries, often resulting in performance compromises. HTAP systems can be broadly classified into three categories: shared-everything architectures, shared-nothing architectures, and hybrid architectures. These systems face challenges such as mixed workload complexity, performance trade-offs, data model mismatch, scalability challenges, resource contention, maintenance and administration complexity, limitation in analytical processing, and evolution of data processing architectures. PlanetScale is an optimized managed MySQL database platform built on top of Vitess, designed for OLTP workloads, which may be a better approach for complex applications with distinct transactional and analytical workloads that can be separated, allowing each database to be optimized for its specific workload.
Dec 01, 2023
1,336 words in the original blog post.