Live data from Hacker News

PlanetScale is now generally available

planetscale.com

81–90 of 139 posts

Re: PlanetScale is now generally available

#81
post #78

Earlier quoted context omitted.

MySQL’s “explain ” does exactly what you described and better. It shows indexes used, exact number of rows scanned etc. It’s the first thing I do when I suspect a query taking time. It’s a pity that not too many backend engineers know about it now a days.

> exact number of rows scanned etc I'm reading MySQL docs [1] and I can't figure out which value in the example output corresponds to the "exact number of rows scanned". > It’s a pity that not too many backend engineers know about it now a days. I use EXPLAIN with PostgreSQL when needed but mostly focus on the execution time, not the number of rows scanned (reading a large row could be orders of magnitude slower than…

Let's just say that MySQL docs are not super helpful when you want to quickly refer to something.

Here's[1] an explain output that I ran just now. The row labeled "rows" is the actual number of rows scanned which as you can guess is bad because it's doing a full able scan.

I completely ignore the actual execution time and focus mostly on two things 1) indexes used; 2) number of rows scanned. If rows scanned is high it means I need to do something about it now even if the absolute query time is low. Either an index is missing or someone in the application code is querying the wrong way (random example, using a "like" on a full table).

[1] https://imgur.com/a/0Pj52QA

Re: PlanetScale is now generally available

#82
post #73
post #26

Earlier quoted context omitted.

Not provisioning & managing is part of it, but the pricing model is important too. e.g. RDS and Mongo Atlas are managed database services so you're not provisioning and managing the infra, but you are paying for dedicated machines and their sizes, etc.

RDS still requires you to provision servers even if you aren't running them.

I think Aurora Serverless may be the one exception to that.

Re: PlanetScale is now generally available

#83
post #20
post #8

Earlier quoted context omitted.

The referential integrity piece (otherwise known as Foreign Keys) will not be addressed and is a limitation - some might say feature - of Vitess. They wrote a pretty good piece about it here, https://docs.planetscale.com/tutorials/operating-without-for...

Thanks, that looks pretty useful. To me, this means that planetscale (and vitess) immediately become less useful for a large class of applications: existing apps that use an RDBMS that you want to scale. Because most existing apps will expect FKs. I haven't tested my employer's application (which has FKs) to see what will happen, but I doubt it will be smooth sailing. But there's probably plenty of greenfield develop…

It's not entirely accurate to say that Vitess "doesn't have" foreign keys. It doesn't enforce FK constraints cross-shard, but it can use FKs to group referential data together within a shard, and the MySQL backing that shard can enforce FK constraints.

Re: PlanetScale is now generally available

#84
post #2

If you don't know what PlanetScale is, it is a serverless database offering. It is compatible with MySQL and offers lots of tooling on top of it. More here: https://docs.planetscale.com/ When I looked at it a few months ago, it had some limitations (lack of referential integrity, MySQL version compatibility) but I'm not sure if they've been addressed (or, in some cases, if they are possible to address). Anyway, alway…

Where is the data hosted? Is it software to run it locally?

Re: PlanetScale is now generally available

#85
post #2

If you don't know what PlanetScale is, it is a serverless database offering. It is compatible with MySQL and offers lots of tooling on top of it. More here: https://docs.planetscale.com/ When I looked at it a few months ago, it had some limitations (lack of referential integrity, MySQL version compatibility) but I'm not sure if they've been addressed (or, in some cases, if they are possible to address). Anyway, alway…

Where is the data hosted? Is it software to run it locally?

the page planetscale.com says their cloud or yours.

Re: PlanetScale is now generally available

#86

I still don't understand how you can work safely with this kind of pricing model. You pay $1.50 per 10 million rows inspected by the database. A relational database like MySQL has a query planner, so you're not fully in control over how exactly the database accesses your data. How many rows are read not only depends on your specific SQL query but also on the contents of the tables you read and the parameters supplied…

This is sort of wait nails people with DynamoDB pricing. If you mess up your query, you end up scanning through tons of data, racking up the cost.

imo at least with dynamodb, its pretty straightforward what any given call is capable of doing, and you can get back capacity usage on every request to track. with these mysql/postgres compatible apis the actual query is abstracted as is its cost.

Re: PlanetScale is now generally available

#88

This seems cool. I am currently shopping around for a cheap managed database for an app I am launching soon (and bootstrapping - so cost is a concern right now). We are starting small but want room to grow. The free tier looks really promising! Especially compared to some of the entry level plans on other cloud providers. Can anyone who has tried Planetscale and compared it to other managed database solutions tell me…

It is pretty awesome The dashboard is clean and easy to navigate The branching feature is really good idea, it allows you to confidently run migrations with no downtime The daily backups are also great, no additional steps to set them up They also have a graph to check query latency which is nice The only downside is that they dont have foreign keys but I used prisma referential integrity for that so not really an is…

> The branching feature is really good idea, it allows you to confidently run migrations with no downtime

So this branching feature is one I still don't understand properly.

Let's imagine my startup is big enough to warrant a PlanetScale database. Hundreds of rows are written every second. When I branch, are those writes applied to the original and the branch? If so, what happens with migrations that mean the incoming writes no longer work? Or is the "confidence" it gives not about full migrations but about knowing that if your migration fails the original DB is still working?

Re: PlanetScale is now generally available

#90
post #77
post #22

"built on top of the only open source database proven at hyper scale, Vitess." Vitess is a sharding layer. Furthermore, I'm sure Cassandra (for all it's flaws) would beg to differ, Netflix had a huge C* deployment. Is hyperscale larger than webscale? Hmm...

>Is hyperscale larger than webscale? I am sure Youtube is larger than Netflix, by many order of magnitude.

Note that YouTube no longer uses Vitess. It was migrated over to Spanner 2 years ago (maybe earlier).
Post reply on HN