Home / Companies / PlanetScale / Blog / September 2023

September 2023 Summaries

5 posts from PlanetScale

Filter
Month: Year:
Post Summaries Back to Blog
When scaling a MySQL database, it's essential to consider horizontal sharding as an option before reaching vertical limits. Horizontal sharding involves distributing data across multiple nodes while maintaining the same schema, whereas vertical sharding splits tables into separate clusters. Database operations like write throughput and read throughput can be affected by the size of a single cluster, leading to increased latency and operational challenges. Sharding can help improve scalability, cost optimization, parallelization, and SLAs, making it an attractive solution for handling larger workloads, data sizes, and throughput capacities.
Sep 28, 2023 1,290 words in the original blog post.
Scaling hundreds of thousands of database clusters on Kubernetes requires careful consideration of statefulness, replication, node failures, backups, storage management, and mitigating failures. PlanetScale utilizes Kubernetes and Vitess to manage its databases, leveraging the Vitess Operator to streamline complex management tasks. By utilizing cloud storage and persistent volume claims, PlanetScale can dynamically allocate storage as needed, ensuring optimal performance and availability. Additionally, the use of Vitess tablets for backups allows for efficient data replication and validation, while the Vitess Operator automatically handles pod failures and provision new resources to maintain database uptime.
Sep 27, 2023 1,738 words in the original blog post.
The text discusses the complexities involved in database sharding, a technique used by experienced engineers to manage large databases efficiently. It highlights the challenges of deciding when and how to shard, choosing appropriate shard keys, and handling cross-shard queries effectively. A tech talk is mentioned as an opportunity to learn more about these aspects.
Sep 19, 2023 75 words in the original blog post.
The new PlanetScale Netlify integration allows developers to streamline database management by simplifying the process of connecting and deploying applications on Netlify that use a PlanetScale database, reducing manual connection string copying and pasting, and enabling seamless deployment with different branches for various deploy contexts. The integration also works seamlessly with PlanetScale's Fetch API-compatible database driver, allowing developers to connect to their PlanetScale databases from within Netlify Functions using the `@netlify/planetscale` library. To get started, developers can visit the PlanetScale integration page in the Netlify docs or watch a past tech talk for more information.
Sep 13, 2023 495 words in the original blog post.
Drizzle is a TypeScript ORM that aims to maintain type safety while using a familiar SQL syntax, and it can be used in conjunction with PlanetScale to create virtual relationships between tables. Foreign key constraints are not allowed on PlanetScale, but Drizzle's virtual relationships can achieve similar results without them. To establish these relationships, you need to use the `references` method on fields to specify the related entity and its field, and then define the relationship using the `relations` function. This allows for more flexibility in querying related data without relying on foreign key constraints. Additionally, when cascading actions are needed, it's up to the developer to handle these tasks through code instead of relying on database constraints.
Sep 06, 2023 1,203 words in the original blog post.