June 2023 Summaries
14 posts from PlanetScale
Filter
Month:
Year:
Post Summaries
Back to Blog
Sharding and partitioning are techniques used to divide and scale large databases. Sharding distributes data across multiple servers, while partitioning splits tables within one server. Both methods aim to improve performance, manageability, and availability of larger databases. Sharding is a form of horizontal scaling that divides the database schema into smaller parts stored on separate instances or servers. Partitioning involves splitting tables within the same database instance based on column values. Choosing between sharding and partitioning depends on factors such as data distribution, performance optimization, and manageability.
Jun 30, 2023
1,569 words in the original blog post.
The text introduces PlanetScale, a database platform designed to enhance developer productivity. It highlights key features like branching, deploy requests, and query insights through a demonstration. This platform aims to improve development speed and efficiency.
Jun 29, 2023
63 words in the original blog post.
A user-friendly and informative 1-paragraph summary of the provided text, covering key points about building a library app with Laravel 10 and MySQL using PlanetScale as the database platform. The tutorial covers setting up authentication with Laravel Breeze, creating models and controllers, and updating views to display data returned by these components, ultimately resulting in a functional web application that interacts with a MySQL database hosted on PlanetScale.
Jun 28, 2023
2,911 words in the original blog post.
PlanetScale takes a multi-layered approach to ensure data safety by creating complete Vitess clusters whenever a database is created, which enhances the scalability and manageability of MySQL. The platform uses ACID compliance and semi-synchronous replication to guarantee the reliability and durability of databases, with backups and validation in place to protect against data loss due to application bugs or hardware failures. Additionally, PlanetScale features secure encryption at rest and in transit, automatic credential invalidation, and a strong security posture to safeguard sensitive information. The platform also offers safe migrations and revert functionality, allowing for instant undeployment of schema changes without data loss. By leveraging the maturity and battle-hardened code paths of MySQL and Vitess, PlanetScale provides a highly reliable database platform for businesses that depend on databases to store critical information.
Jun 28, 2023
777 words in the original blog post.
The latest release of Vitess, version 17, introduces several significant enhancements to improve compatibility, performance, and usability. The VTTablet settings connection pool feature is now enabled by default, simplifying system management. A new Topology Service based Tablet Throttler has been added, enabling more efficient query plans and improved query performance. Vitess now supports additional MySQL statements and functions, including comparison operators and JSON functions. Schema tracking has also been enhanced to quickly detect schema changes, ensuring data consistency. Replication enhancements include support for MySQL replication within each replica set, reducing disk I/O and storage. Usability enhancements include traffic throttling improvements and bug fixes for VTOrc and VTAdmin. The release also includes many other improvements, including a new virtual machine based engine that will eventually replace the AST based one, offering greater performance improvements.
Jun 27, 2023
600 words in the original blog post.
The choice of column type in MySQL depends on the specific requirements of the data being stored, with different types offering varying levels of precision and range. The DATE column stores only dates, while the YEAR column stores only years; the TIME column stores time intervals, whereas the DATETIME and TIMESTAMP columns store both date and time information. TIMESTAMP has a smaller storage size but a narrower legal range compared to DATETIME, which is more suitable for storing dates outside the 1970-2038 range. Additionally, MySQL's handling of timezones can affect how values are stored and retrieved from the database.
Jun 22, 2023
1,360 words in the original blog post.
PlanetScale and Hightouch provide insights on effectively utilizing product data, a crucial asset for companies. They discuss strategies to leverage real-time action on this data to enhance business operations and decision-making processes.
Jun 22, 2023
46 words in the original blog post.
This tutorial guides developers to build an expense tracker application using Symfony and MySQL with the help of PlanetScale, a MySQL-based database platform that simplifies database development and provides scalability and hassle-free migrations. The application allows users to create new expenses, view all expenses, and visualize their spending in a pie chart. Throughout the process, developers learn about setting up a database, configuring the Symfony application, creating forms for expense creation, seeding data, and rendering templates with Bulma styling. By following this tutorial, developers can build a robust and scalable web application using Symfony and PlanetScale.
Jun 20, 2023
2,048 words in the original blog post.
The text discusses generating hash columns in MySQL for faster strict equality lookups. It explains how generated columns work and provides examples of using them to create compact indexes that are faster than wide indexes. The article also covers hashing multiple columns into one, using a composite hash, and storing the values as binary strings to improve efficiency. Additionally, it introduces functional indexes in MySQL 8.0.13, which allow for creating an index on the result of a function without using a generated column. The goal is to provide a more efficient way to perform strict equality lookups and enforce uniqueness across multiple columns.
Jun 15, 2023
2,423 words in the original blog post.
The article explains how to integrate PlanetScale with Node applications built using the Serverless Framework on AWS, providing a serverless stack with extreme scalability and simplicity. To start, users need an AWS account and install the serverlessCLI, then create a new serverless application using the Serverless Framework's configuration file (serverless.yml). The application is then connected to PlanetScale as its database, using environment variables to store credentials securely. Stage parameters allow for different credentials to be used depending on the deployment stage, making it easy to test and deploy changes between development and production environments.
Jun 13, 2023
1,152 words in the original blog post.
PlanetScale has deepened its relationship with AWS by officially joining the AWS ISV Accelerate Program, which will allow customers to benefit from a more seamless integration, expanded access to AWS services, and increased reliability. This partnership also enables PlanetScale to connect with AWS field sellers globally, further expanding its offerings in the AWS Marketplace. With this move, PlanetScale Enterprise plans are now available for purchase in AWS Marketplace, offering features such as private database connectivity, isolated Amazon EC2 instances, and robust sharding options, among others.
Jun 12, 2023
315 words in the original blog post.
The integration of Hightouch with PlanetScale allows users to easily sync data between multiple platforms using simple connections. The power of this combination can be used in various ways, such as automating customer records updates, sending notifications, executing asynchronous operations, and syncing account health scores. To use the integration, users set up a sync by configuring a data source, destination, and sync method in Hightouch, with PlanetScale serving as either a source or destination for the syncs. Users can map fields between different systems, allowing for seamless data transfer without requiring matching field names.
Jun 08, 2023
620 words in the original blog post.
Using redundant conditions as a method to unlock obfuscated indexes and improve performance in MySQL is an effective technique that can be used when working with the database. Obfuscating an index occurs when queries are written in such a way that they hide the indexed value from MySQL, preventing it from using the index effectively. However, adding redundant conditions to queries can sometimes unlock existing indexes by allowing MySQL to use them more efficiently. Redundant conditions are conditions that seem superfluous or not needed but can be added and removed without changing the results of a query. In some cases, domain-specific knowledge can be used to add redundant conditions that logically cannot change the result set, but may still allow MySQL to use the index effectively. By using redundant conditions, developers can improve performance in their queries and optimize their database's indexing strategy.
Jun 07, 2023
1,517 words in the original blog post.
The new query planning model in Vitess aims to simplify the optimization process by breaking it down into smaller, manageable steps, each resulting in a runnable plan. This approach offers several benefits, including improved visualization, increased testability, and enhanced flexibility with expressions. By making every step of the optimization pipeline a runnable plan, developers can better understand and reason about the impact of each optimization step, leading to more efficient and optimized queries. The model also allows for arbitrary expressions to be used in ordering, grouping, and aggregations, providing greater flexibility when crafting complex queries.
Jun 01, 2023
1,283 words in the original blog post.