Hey HN, I made this course :D The course is a bit more than 7 hours long split over 64 videos. I was always frustrated by the lack of intermediate database content, it seemed like it was mostly intro stuff, or straight to DBA level. So I read as many database books as I could, read through the official docs, and made this course specifically for application developers. If yall have any feedback I'd love to hear it. I…
I’ve been using MySQL since 1998. I know the source code very well. I’ve designed large platforms with MySQL but I run postgres in production. I also wrote my own SQL engine. This is very VERY well done. Kudos. I’m loving that we have a contender for mongo atlas with planetscale. Keep this kind of content coming and you’ll be the next snowflake.
MySQL for Developers
111–119 of 119 posts
Re: MySQL for Developers
#112I really wanted to use Planetscale, but there are two blockers: - No foreign key support - No CTE support I tried using Planetscale knowing that there is no foreign key support because it is fine to me. But I had to stop using Planetscale because of the second. My ORM (ent for golang) relies on CTE so I simply cannot run complicated queries. So if you are considering Planetscale, test it enough especially if you are…
Correct that we don't yet support CTEs. I'm surprised to hear of an ORM that relies on them! That's pretty cool, never heard of that.
Re: MySQL for Developers
#113As someone who has been passively watching you develop and promote this course over what feels like _forever_ - I'm SO excited to see the feedback here the way that it is. Kudos to you and the team at Planetscale, Aaron.
Re: MySQL for Developers
#114Hi @aarondf, this is bloody phenomenal! Fantastic work. Can we eventually expect something similar for PostgreSQL [for Developers]? And does this course include ORM's, like SQLAlchemy?
I think a good teacher could make a lot of money doing it if they wanted.
This course talks briefly about ORMs, but does not go into usage of any particular one. All raw sql!
Re: MySQL for Developers
#115Is this course relevant for MariaDB as well?
Re: MySQL for Developers
#116Earlier quoted context omitted.
Whew, that's a relief. Keep me posted if you find out it's on our side.
okay totally on my side: it was uMatrix :) https://github.com/gorhill/uMatrix/wiki/Per-scope-switches#r...
Re: MySQL for Developers
#117I really wanted to use Planetscale, but there are two blockers: - No foreign key support - No CTE support I tried using Planetscale knowing that there is no foreign key support because it is fine to me. But I had to stop using Planetscale because of the second. My ORM (ent for golang) relies on CTE so I simply cannot run complicated queries. So if you are considering Planetscale, test it enough especially if you are…
Did you follow that blog post already?
Re: MySQL for Developers
#118Earlier quoted context omitted.
> where you want to store some amount of logic in the database itself If you’ve ever worked on a decently sized project, you’ll quickly realize this is an anti-pattern that you should avoid at all cost. Imagine having multiple teams updating that logic without any version control or visibility in what’s stored in pg.
> If you’ve ever worked on a decently sized project, you’ll quickly realize this is an anti-pattern that you should avoid at all cost. Not sure about this. On one hand, packages of reusable logic in the DB can be useful - like processing some data when you're selecting it, or doing common validations before inserting data, or even when trying to do some batch processing or reporting. On the other hand, I've worked on…
This is exactly what I mean. Sure, anything is technically possible, I’m not saying that you can’t version your stored procedures (even though even that has almost never been the norm on any team I’ve worked on). But is it the ideal setup for your team/project? Far from it.
Re: MySQL for Developers
#119I really wanted to use Planetscale, but there are two blockers: - No foreign key support - No CTE support I tried using Planetscale knowing that there is no foreign key support because it is fine to me. But I had to stop using Planetscale because of the second. My ORM (ent for golang) relies on CTE so I simply cannot run complicated queries. So if you are considering Planetscale, test it enough especially if you are…
I'd need to dig into the code, but it looks like someone has used PlanetScale with ent before: https://betterprogramming.pub/how-to-connect-ent-to-planetsc... Did you follow that blog post already?
When I tried it at the end of the last year, ent works fine with Planetscale for basic reads. However, it fails to read when I use complex queries with Ent GraphQL integration.
ent added quite a lot of features last year so things might changed from the time when the blog post was written.