Тёмный

You don't need NoSQL (use MySQL) 

PlanetScale
Подписаться 38 тыс.
Просмотров 75 тыс.
50% 1

Опубликовано:

 

1 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 373   
@rdvansloten
@rdvansloten 11 месяцев назад
This channel pumps out quality database content every week. Definitely deserves more subscribers.
@PlanetScale
@PlanetScale 11 месяцев назад
😮‍💨 I appreciate that
@aWebExpert
@aWebExpert 11 месяцев назад
Done!
@Zomp420
@Zomp420 10 месяцев назад
good point! I just subscribed
@davidmutua6971
@davidmutua6971 8 месяцев назад
Done. Was really a noob mysql Developer hidding behind Eloquent. Now I can review some senior dev codebases. Thanks Franco.
@LenWoodward
@LenWoodward 11 месяцев назад
I'm absolutely loving this long-form content, Aaron. So easy to just put each one of these in my `favorites` list. So much value.
@PlanetScale
@PlanetScale 11 месяцев назад
Thank you Len! They're a lot of work so I'm glad to hear that
@xcrap
@xcrap 11 месяцев назад
I have never used, and probably will not, but I have to admit, that's incredibly powerful. Super educational information as usual. I think the only thing missing in some videos would be some real-case measurements and testing. For example, there could be two tables: one with JSON elements and another without. We could compare the speed of SELECTs from a million table data. I think this will not only be useful but also very informative about what kind of tables or schemas are more suitable for specific case scenarios. For example It could help us make informed decisions when creating product items attributes in a shop, whether it's better to use JSON or just columns. MYSQL is really powerful ;)
@nathanbrown2640
@nathanbrown2640 11 месяцев назад
Three minutes into watching this, and I'm already loving the wonderful variety of use cases you have come up with! Feels like a NoSQL approach within a relational db
@PlanetScale
@PlanetScale 11 месяцев назад
Thanks! Kinda crazy right?
@mkmalikcom
@mkmalikcom 11 месяцев назад
​@@PlanetScaleright
@antonmykhailovskyi447
@antonmykhailovskyi447 11 месяцев назад
I don`t really often leave comments but you deserved it)) Ngl, I`ve never seen neither more useful, nor "pleasant-to-listen" tutorials in MySQL topic. The way you, Aaron, explain things to us is out of this world, do love it! Keep it up, I`m completely sure many people will find it useful!
@PlanetScale
@PlanetScale 11 месяцев назад
What a great start to my week, thank you so much!
@MatthiasFeist-de
@MatthiasFeist-de 11 месяцев назад
those videos you make are really great. I worked with mySQL since 15 years ago but I still learn something new and really enjoy the format and your delivery of these topics!
@PlanetScale
@PlanetScale 11 месяцев назад
Means the world to me, thank you
@0xjrr
@0xjrr 11 месяцев назад
This series of videos are incredible, been watching all of them and it really helps me out. Thanks for your work, keep it going.
@PlanetScale
@PlanetScale 11 месяцев назад
Thank you! Nice to know it's helping people
@otmanm4095
@otmanm4095 11 месяцев назад
MySQL propaganda ! Thx sharing such content
@PlanetScale
@PlanetScale 11 месяцев назад
MySQL propaganda department, confirmed 😂
@paprukas
@paprukas 10 месяцев назад
Your sql?
@bmeares
@bmeares 11 месяцев назад
Incredible, I wonder how this compares to PG's JSONB🤔
@PlanetScale
@PlanetScale 11 месяцев назад
Same actually. What are you most curious about: functionality or performance?
@kirayamato6128
@kirayamato6128 11 месяцев назад
I think when it comes to databases like queries, performance really matters
@yarmgl1613
@yarmgl1613 11 месяцев назад
@@PlanetScale performance benchmarks video would be nice
@123mrfarid
@123mrfarid 10 месяцев назад
​@@PlanetScaleperformance comparison with json postgres please, also with jsonb
@MrOptima
@MrOptima 10 месяцев назад
Excellent video and resource link to Digital Ocean. I was living in dark ages using MySQL version 5.2x. I upgraded to 8.0.35 and experimented with everything you mentioned in the video. It opened my eyes on how to use MySQL with JSON moving forward. I was using a text field for that before and did not know about all the JSON related functions of MySQL. Thank you very much.
10 месяцев назад
I did exactly that in a postgresql db. This is fantastic, much more solid and fast
@vadimemelin2941
@vadimemelin2941 10 месяцев назад
Man, that's nice, but I would prefer nosql simply because it scales Can we talk about how does MySQL scales?
@Tigerlady22445
@Tigerlady22445 10 месяцев назад
I just stumbled across this video and I haven't finished it but I already love it! I'm still learning about databases but I thought NoSQL was hands down more powerful and scalable than SQL tables, and my previous experience with SQL tables has been a drag, but this is showing me a side of SQL tables I didn't know existed. Thanks!
@NomadSWE
@NomadSWE 10 месяцев назад
Intresting info... but your glasses m8, do you really have glass in them cause if... they are sooo clean and not reflex free.
@thiemokellner1893
@thiemokellner1893 10 месяцев назад
What the heck is unstructured JSON? There are rules how a valid JSON has to be. Rules means structure!
@martinzen
@martinzen 10 месяцев назад
Plani wrong. The main reason to choose nosql over sql is scale, not data modeling capabilities.
@simonegiuliani4913
@simonegiuliani4913 10 месяцев назад
Majority of people use nosql for horizontal scalability
@timucinbahsi445
@timucinbahsi445 11 месяцев назад
I'd like to add to this. Some of the reasons for using NoSql are being able to store the data in RAM like using Redis for cache etc and also NoSql is scalable. Both of those also possible in Sql databases. You can definitely configure your db to be stored in the memory and you can definitely have a cluster of Sql database. It is harder to scale up relationships with both Sql and NoSql. NoSql just defaults to having no relationships what so ever. That's what makes it easier to scale. If you do introduce relationships in your data, you'll have the same issues. Needless to say Sql databases are perfectly capable of not using relationships
@aabccd021
@aabccd021 11 месяцев назад
Would you like to talk about discriminated union / sum types in SQL?
@kj4derEchte
@kj4derEchte 11 месяцев назад
How opinionated about nosql are you: 0:30 - yes
@asathler
@asathler 10 месяцев назад
Awesome features at MySql. Thanks for this impressive lesson! Regards from Brazil.
@Sabach9397
@Sabach9397 11 месяцев назад
We often have an "options_json" column where we set configurations of things that we don't directly search often. An example would be on our forms builder, the forms settings someone picks we use to generate the form, or even on questions if a certain question type is required or has visibility requirements, etc. It saves scanning a ton of extra columns.
@philliptune
@philliptune 10 месяцев назад
Right, I had kinda assumed that, while you could, you wouldn't really want to search using JSON data columns. I've just been using it for mostly what he mentioned, metadata, settings, and I like the idea of tenant-specific data structures as I'm currently working in a multi tenant app that we're building out integrations for.
@BillyRichardson
@BillyRichardson 10 месяцев назад
The problem is that SQL isn't scalable with millions of requests a minute. NoSQL is.
@PlanetScale
@PlanetScale 10 месяцев назад
Not totally true! We've run a million queries *per second* with MySQL: planetscale.com/blog/one-million-queries-per-second-with-mysql
@OnAirMarc
@OnAirMarc 11 месяцев назад
I have so many ideas on how I'm going to use this for supporting custom user defined fields in a CRM I'm building! Thank you!!!
@PlanetScale
@PlanetScale 11 месяцев назад
Niiiice! Do report back!
@PublyoRaymundo
@PublyoRaymundo 10 месяцев назад
Nice video. Would be good to see some performance numbers on the queries, specially when using them on predicates
@Kanna-fs5jg
@Kanna-fs5jg 11 месяцев назад
@PlanetScale Can we please get a comparison on MySQL and PostgreSQL? I am still confused why it is so opinionated
@PlanetScale
@PlanetScale 11 месяцев назад
What kinds of things would you want to see compared? Anything specific?
@Kanna-fs5jg
@Kanna-fs5jg 11 месяцев назад
​@@PlanetScale Some things on top of my head: 1. For scalability (concurrent connections) and performance (read/write speeds over single instance and cluster) 2. Why PlanetScale is MySQL instead of Postgres 3. Differences between them, what can Postgres do that MySQL can't and vice versa 4. When to use what Would be great if these are covered!
@isaacfink123
@isaacfink123 11 месяцев назад
I tried working with json data in mysql, besides the syntax being clunky (compared to postgres) I found it to be super slow compared to structured data, I was processing millions of rows and anything related to json added a significant load on the database sometimes to the point of rendering it useless
@isaacfink123
@isaacfink123 11 месяцев назад
I wrote this comment before finishing the video so maybe it's irrelevant
@knightofrohan
@knightofrohan 11 месяцев назад
Interesting! I am just learning dev and my first foray into it is with WordPress. I know WordPress plugins like Elementor use JSON for the pages you build in them and I wonder if they use this feature of MySQL.
@after_alec
@after_alec 11 месяцев назад
Lol “if you can imagine”
@cedantarmalabori861
@cedantarmalabori861 9 месяцев назад
Unreal the quality of content you are putting out. I've made the decision to not use NoSQL db's for certain services thanks in part to this video. Keep it up. Super informative.
@rid9
@rid9 11 месяцев назад
Another idea for JSON data: audit history. For example, don't just have a created_at and updated_at for a user, but also history which contains a log of when the update happened, what changed and who initiated the change.
@PlanetScale
@PlanetScale 11 месяцев назад
Audit history is a good one! I actually use JSON for that exact use case in an app I built.
@har111100
@har111100 3 месяца назад
I am trying to understand 2 points 1. Performance: Which 1 is expensive, Performing JSON operations on mysql or in my backend code 2. Cost: Lets assume we need RDBMS but to store json data if we are using MongoDB then, Is MongoDb will be costly over Mysql if we plan to keep json data into MongoDb instead of Mysql? Please share your expert advice. Thanks for wonderful videos. 😃
@arielspalter7425
@arielspalter7425 10 месяцев назад
Excellent tutorial. Eloquently and clearly explained and demonstrated.
@autohmae
@autohmae 10 месяцев назад
I wish we had such a great video about JSON on PostgreSQL as well. But clearly I'm saying that on a video by the wrong people to ask about this. PS 30:18 funny how select * took 3ms, but select *, attributes took 1ms. I assume it was just caching, but looked wrong compared to what you said.
@emadabushofa2379
@emadabushofa2379 10 месяцев назад
You are partially correct, json documents are fully supported in many SQL databases including MySQL But to imply that this was the only advantage of NoSql is wrong Storing dynamic data like json wasn't the advantage of NoSql, the massive advantage of using NoSql is horizontal scalability made a lot easier than any SQL database, that's why you should use NoSql if you need to ever work on apps with large data, don't use MySQL in that case.
@RandomGeometryDashStuff
@RandomGeometryDashStuff 9 месяцев назад
03:23 isn't using bits BITINT UNSIGNED (64 booleans per column) better than json because takes less space on disk?
@SanderCokart
@SanderCokart 10 месяцев назад
So how about how to migrate from NoSQL mongodb to Mysql MariaDB
10 месяцев назад
Your title is misleading : NoSql databases is not limited to Documents/Json! Graphs, key/value, column, timeseries also exists and have their own pro and cons like relational database...
@RobHarrison
@RobHarrison 10 месяцев назад
You’re assuming the reason for using a NoSQL database is wanting to store and index json data. I find often it comes down to scaling writes and data volume.
@TheLondekZdroj
@TheLondekZdroj 10 месяцев назад
It sounds great in theory but in practice It's not the best idea :/. It may work if you don't need to query data inside of the JSON or for some shallowly nested data but if you're not careful then the performance overhead can get out of hand quickly not mentioning serious maintainability problems.
@eltreum1
@eltreum1 10 месяцев назад
SQL is useful when the data model and use case fits. SQL is terrible for network config db's and automation at telco level. At least for that stuff, we only use graph.
@blender_wiki
@blender_wiki 10 месяцев назад
Json in a MySQL field makes so much sense that I have a hard time imagining people that don't see this as an advantage. Unless you need to store BIG data managing a Json in a MySQL solves so many problems in development and is very flexible if in the future you want to move your Json to a noSQL instead of adding undress of tables and filed and get mad with conversation.
@jmxtoob
@jmxtoob 10 месяцев назад
I see how this helps application design and developer comfortable, but don't you use the horizontal scaling advantages of something like mongodb?
@modolief
@modolief 10 месяцев назад
Isn't MySQL being owned by Oracle a significant downside?
@lehast
@lehast 7 месяцев назад
JSON files are not "unstructured" but "semi-structured", text files, videos and sound are "unstructured"
@vitalyl1327
@vitalyl1327 10 месяцев назад
You absolutely need NoSQL - no relational DBMS can match a performance of a dedicated, say, graph DB. Imagine a use case - a database for storing CAD data. It's mostly a DAG (but not always strictly a DAG, cycles are possible). It's very strictly typed - what nodes can be linked is defined in schema. You need ACID, of course - multiple engineers work on the same large project at the same time and should not harm consistency. Good freaking luck doing it on top of a relational DBMS.
@PlanetScale
@PlanetScale 10 месяцев назад
Sounds like a great use case for NoSQL!
@vitalyl1327
@vitalyl1327 10 месяцев назад
@@PlanetScale my point is, once performance is taken into account, there are tons of use cases where specialised non-relational DBMS is superior to any relational. Although the modern crop of non-relational systems is mostly disappointing, there is a lot of old powerful pre-relational systems.out there. So the blanket dismissal of non-relational and thoughtless defsulting to relational can be harmful.
@lighty262
@lighty262 11 месяцев назад
I would love to hear more about subqueries next time, when to use it and when not to use it, as well as the drawbacks.
@PlanetScale
@PlanetScale 11 месяцев назад
Nice, I'll do a whole video on that
@Peter-bg1ku
@Peter-bg1ku 10 месяцев назад
that sounds narsisistic. why use "my" sequel? in the best of society and humanity, please use "no" sequel, kids.
@myarichuk
@myarichuk 10 месяцев назад
The thing is, NoSQL was invented for horizontal scalability, which no RDBMS can allow due to obvious reasons. Handling dynamic JSON objects is merely a bonus.
@PlanetScale
@PlanetScale 10 месяцев назад
Vitess has pretty good horizontal scalability! That's the whole reason it exists, in fact. We hit 1m QPS by just adding shards. planetscale.com/blog/one-million-queries-per-second-with-mysql.
@myarichuk
@myarichuk 10 месяцев назад
@PlanetScale such throughput sounds nice. The question is , what kind of queries are we talking about. How would Vitess handle cross shard joins? And then, I can't help but think on the consistency part of CAP. How does it handle distributed transactions (cross shard)? In such setups, it is critical - does it do 2pc? Or does it do something based on a quorum?
@clamhammer2463
@clamhammer2463 10 месяцев назад
Is there a way to set up a mysql database to natively push updates to tables/rows much like some cloud providers offer?
@Chalisque
@Chalisque 6 месяцев назад
I guess a stored virtual column is for when it is more computationally expensive to recalculate than to load from disc.
@vishnugovindan8550
@vishnugovindan8550 10 месяцев назад
is this more or less applicable for Postgres' JSONB column support as well?
@kyleareich
@kyleareich 9 месяцев назад
Dude you're one of the best teachers I've ever run across on the internet or in person. Thanks for what you do. I love your videos.
@PlanetScale
@PlanetScale 9 месяцев назад
This is one of the nicest things I've ever heard. Thank you internet stranger, I really really appreciate it
@myprogrammingbuddy153
@myprogrammingbuddy153 10 месяцев назад
Sacrificing forein key support
@PlanetScale
@PlanetScale 10 месяцев назад
Not sure I understand the comment!
@peterl.8681
@peterl.8681 10 месяцев назад
It's pretty nice to have json in sql. Although still figuring out how to do a where in on a json array.
@jatazoulja
@jatazoulja 10 месяцев назад
been using jsonb for 5 years now, good thing like on postgres, I can index json keys.
@neverything
@neverything 10 месяцев назад
Used it for API responses where I might need additional values later on
@SXsoft99
@SXsoft99 11 месяцев назад
been telling people for years to use it, they all went like "but it's an anti-pattern" me be like "it's a feature"
@fungilation
@fungilation 10 месяцев назад
You don't want MySQL, you want PostgreSQL Thank me later
@PlanetScale
@PlanetScale 10 месяцев назад
What do you love about Postgres?
@fungilation
@fungilation 10 месяцев назад
consistency, reliability
@PlanetScale
@PlanetScale 10 месяцев назад
Boy do I have good news for you
@fungilation
@fungilation 10 месяцев назад
I built isoHunt, it had 40M MAU and I used Mysql for it. Regretably. So, no.
@Thomas-jj1ev
@Thomas-jj1ev 10 месяцев назад
Which editor was used here? Looks good and very good tutorial!
@lacherolachero9409
@lacherolachero9409 10 месяцев назад
Great content! Love it! Btw, what is this tool you are using to interact with the db?
@TubeSkaterRudy
@TubeSkaterRudy 10 месяцев назад
Sorry but you make me upset. Why you think you can make me force using YOUR Sql, I will use MY SQL!!! I don't need YOUR SQL. OK!!!
@PlanetScale
@PlanetScale 10 месяцев назад
Ok honestly I read the first sentence and thought "what could I possibly have done?" and then 😂
@Idontreallycareatall
@Idontreallycareatall 10 месяцев назад
it could be a nice advice... if only postgres didn't exist
@jimg8296
@jimg8296 9 месяцев назад
Wow .... Head Wall! Link to your videos to team tomorrow.
@VaibhavPathak-fj6xy
@VaibhavPathak-fj6xy 10 месяцев назад
JSON looks really powerful in mysql, I only want to do some research on what's the CPU expense when MySQL does these key & value selection compare to a NoSQL database, if that's cool for millions of records than I think it's great. I would love to discuss this, so please reply.
@VaibhavPathak-fj6xy
@VaibhavPathak-fj6xy 10 месяцев назад
One more thing which I got to know is that you can't really query all type of JSON data because of "Those functions aren't even available by MySQL"
@Zomp420
@Zomp420 10 месяцев назад
When should one choose MySQL over PostgreSQL?
@karlgustav9960
@karlgustav9960 10 месяцев назад
You kind of missed an important use case: event sourcing pattern. (although you mentioned storing api calls, fair enough). I’m not sure if MySQL is performant enough for diffing, or creating materialized views from json columns though.
@PlanetScale
@PlanetScale 10 месяцев назад
Ah yeah, nice use case!
@Kabodanki
@Kabodanki 10 месяцев назад
MEAN stack was one of the biggest mistake ever done to new comers
@IgorPomaranskiy
@IgorPomaranskiy 10 месяцев назад
So does PostgreSQL. :) I haven't check other RDBMSes, but will not be surprised, if everyone of them has JSON fields.
@erikharaldsson2416
@erikharaldsson2416 10 месяцев назад
MS SQL Server certainly does.
@wdeath
@wdeath 10 месяцев назад
I think this is the wrong direction. JSON should replace tables, not tables to add JSON columns. A tree(JSON) is more general than a list, its weird to add trees in a list. Things become complicated and queries verbose. I don't mean that MongoDB is ready to replace all relational databases, but they are in the right direction, they use a tree data model from the start.
@PlanetScale
@PlanetScale 10 месяцев назад
All things in moderation
@jameshunt1822
@jameshunt1822 11 месяцев назад
I don't understand, postgresql had json type. MySQL has had it too? Wow. I am an idiot. What a effing idiot to have confidently said MySQL doesn't have json in an interview.
@PlanetScale
@PlanetScale 11 месяцев назад
Dang, if only I made this video sooner! Did you... uh... get that job?
@havvg
@havvg 11 месяцев назад
Great content, Aaron. I have been using the JSON type for quite a long time, but wasn't aware on the index part of that topic (and never was in need of it, yet). Aside from the typical log scenario (API Tx/Rx), I have been using JSON for event stream data, basically the same, but from an event sourcing view on the domain.
@PlanetScale
@PlanetScale 11 месяцев назад
Mmm I like that. Event stream is a great example.
@jamiecarter
@jamiecarter 10 месяцев назад
Great video, I am just starting to learn mySQL and postgres for work and this is really helpful as we have a JSON object in our database that I've been asked to generate a useful table for. Can I ask what software you are using in this video to write your queries and get the show the table results?
@PlanetScale
@PlanetScale 10 месяцев назад
It's TablePlus! ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-7V_CJBPZPes.html
@malcomgreen4747
@malcomgreen4747 10 месяцев назад
I didn't fall into the hype a few years ago about no sql database
@MattHudsonAtx
@MattHudsonAtx 10 месяцев назад
If you're still recommending MySQL this many years after Postgres pulled ahead i don't know what to say, Bud
@PlanetScale
@PlanetScale 10 месяцев назад
Who you calling bud, pal (Ocean's 11 reference)
@pprocacci
@pprocacci 10 месяцев назад
I've been using postgresql for storing jsonb documents for what feels like a decade. Absolutely no need for any other type of `nosql' database. Agree w/ the video here.
@PlanetScale
@PlanetScale 10 месяцев назад
Postgres 🤝 JSON 🤝 MySQL
@TheDamisBlaine
@TheDamisBlaine 11 месяцев назад
Sorry, but from my perspective examples show here are useless. When we store data (nested and more complicated structures) in db we want to paginate it, filter, etc. In video like this I would like to see more complicated examples and not the ones from documentation
@PlanetScale
@PlanetScale 11 месяцев назад
You might enjoy our video on pagination! ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-zwDIN04lIpc.html
@user-qr4jf4tv2x
@user-qr4jf4tv2x 10 месяцев назад
nosql is overrated when we can deal with nosql data just fine in sql
@daknyx1448
@daknyx1448 11 месяцев назад
Currently using a relational DB for a private project after a while of using exclusively MongoDB in the professional context, and this video has a perfect timing to solve one of the issues I had: having a list of (unknown amount of) tags for any row. Currently I am using extra link tables but a json column would do the job in a more elegant manner imo. Thank you!
@PlanetScale
@PlanetScale 11 месяцев назад
Tags are a great use case for sure. Glad it was helpful!
@richardracine9055
@richardracine9055 6 месяцев назад
Uhhh. yes, you do. MySQL sucks w json data.
@H4KnSL4K
@H4KnSL4K 9 месяцев назад
Dude, why use MySQL, when you could use something more robust and reliable like Postgres?
@H4KnSL4K
@H4KnSL4K 9 месяцев назад
Other than it can be annoying that Postgres insists that the case (upper vs lowercase) is correct.. but that can be a s good thing to stop you from being a sloppy coder
@andretirta9801
@andretirta9801 9 месяцев назад
json_set of fields that don't exist? what happen then?
@MotionScope-u3n
@MotionScope-u3n 10 месяцев назад
You have been doing really good effort for everyone, it's really nice. I was wondering if you need a video editor team of motionscope, to take your channel to new heights with professional editing.
@PlanetScale
@PlanetScale 10 месяцев назад
We have a Steve the Editor. Thanks tho!
@T1Oracle
@T1Oracle 10 месяцев назад
You spelled PostgreSQL wrong...
@CommentingOnTheFreakshow
@CommentingOnTheFreakshow 10 месяцев назад
Yeah? Now scale it up when my user base goes way up! Oh wait! I still have a single point of failure database bottleneck!
@PlanetScale
@PlanetScale 10 месяцев назад
We can easily hit 1m qps! Would that handle your situation ok? planetscale.com/blog/one-million-queries-per-second-with-mysql
@darkomaksimovic3456
@darkomaksimovic3456 10 месяцев назад
You can also buy some cars with built-in bicycles
@sohampatil2228
@sohampatil2228 11 месяцев назад
This is interesting but isn't the purpose of NoSQL faster access to data? And is used to store loosely related data to access it faster why use OLTP for it?
@PlanetScale
@PlanetScale 11 месяцев назад
There may be *some* cases where the data is purely unstructured, but I feel like most data has some structure and storing that part in MySQL makes a lot of sense
@_____case
@_____case 11 месяцев назад
"And you don't have to use NoSQL as your primary data store. Can you imagine?" lmfao
@PlanetScale
@PlanetScale 11 месяцев назад
😂 Too much shade, or just enough?
10 месяцев назад
Never go SQL, awful 2005-like dx. Always go non-relational, preferably MongoDB as you can share schemas across your whole stack. If your stack isn't fully typescript based you're doing it wrong.
@PlanetScale
@PlanetScale 10 месяцев назад
I think you'll find very few companies are fully typescript. Fully typescript is ok! But to suggest any other way is wrong is a bit narrow minded imo
10 месяцев назад
@@PlanetScale I was being a bit cheeky and over the top probably due to a mix of early morning and the intro being a bit of an attack; for that I apologize. A lot of great advice in the video; I just personally really dislike the SQL syntax, thats most likely due to me thinking of a database in terms of documents compared to say SQL which would be more of a spreadsheet. We're about to decide on DB solution for our primary big saas project and even though I'm the one making the tech choices as CTO and I again despise the SQL syntax I'm strongly considering going with postgresql (vercel storage etc) thanks to all of the tooling and the fact that the pool of hire-able developers is much larger. I'm really dreading it though.
@jslime
@jslime 10 месяцев назад
Incredibly useful tutorial. Thank you for putting it together.
@jslime
@jslime 9 месяцев назад
After playing around with this today. Some useful notes for MariaDB users: 1.) The ->> operator is a shorthand for JSON_UNQUOTE(JSON_EXTRACT()) in MySQL 5.7.13 and later. However, MariaDB does not support this shorthand operator. You're stuck with JSON_UNQUOTE(JSON_EXTRACT(`jsonObject`, '$.your_key')). 2.) When attempting to create STORED or VIRTUAL columns; instead of STORED use PERSISTENT: eg: ALTER TABLE your_table ADD COLUMN your_column VARCHAR(255) AS (JSON_UNQUOTE(JSON_EXTRACT(`jsonObject`, '$.your_key'))) PERSISTENT; 3.) The INVISIBLE column feature is not supported in MariaDB. It's a feature introduced in MySQL 8.0.23, which allows you to make a column invisible. In MariaDB, you can't make a column invisible directly.
@BlueIceC4
@BlueIceC4 10 месяцев назад
based on oracle's license changes this advice is trashy
@ycombine1053
@ycombine1053 11 месяцев назад
"a no sql database as your primary data store, can you imagine?" Yes sir, unfortunately, i dont have to imagine.
@PlanetScale
@PlanetScale 11 месяцев назад
Oh shoot. Condolences
@vamsicris4u
@vamsicris4u 11 месяцев назад
I like the black theme IDE for MySQL. Can you pls share the name of the IDE
@PlanetScale
@PlanetScale 11 месяцев назад
You're in luck! ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-7V_CJBPZPes.html
@JoseRodriguez-rx4ck
@JoseRodriguez-rx4ck 10 месяцев назад
This info is super useful, at work we are evaluating ditching MySQL for PostgreSQL and get a NoSQL. I know nothing about NoSQL, is it possible to do a second part of this video explaining how these MySQL features compare to NoSQL?
@2chiem369
@2chiem369 10 месяцев назад
Can you make a video about using json in mssql
@guitar300k
@guitar300k 8 месяцев назад
yeah, but they don't have a lot of nonsql benefit
@RajveerSingh-vf7pr
@RajveerSingh-vf7pr 10 месяцев назад
Today(after weeks) I realized that this is an official channel... I have never seen such a great quality content from an official channel...
@PlanetScale
@PlanetScale 10 месяцев назад
🥰 love to hear that.
@alexgronholm4023
@alexgronholm4023 10 месяцев назад
Is there any technical reason at all to use MySQL instead of PostgreSQL? Does MySQL have any redeeming qualities that would make someone choose it over psql?
@kaisarcode2
@kaisarcode2 9 месяцев назад
OMG, this is mind blowing!!! ❤❤❤
@colinmaharaj
@colinmaharaj 10 месяцев назад
You mean mariaDB. MySQL is something you'd pay for
@PlanetScale
@PlanetScale 10 месяцев назад
MySQL is open source!
Далее
Easy database indexing strategies
36:03
Просмотров 25 тыс.
Pagination in MySQL - offset vs. cursor
13:20
Просмотров 58 тыс.
БАГ ЕЩЕ РАБОТАЕТ?
00:26
Просмотров 44 тыс.
Get Started with Mixed Reality [ASL]
11:21
Просмотров 188
I've been using Redis wrong this whole time...
20:53
Просмотров 361 тыс.
The purest coding style, where bugs are near impossible
10:25
RAND is too slow (in MySQL)
17:32
Просмотров 13 тыс.
Faster geospatial queries in MySQL
13:46
Просмотров 20 тыс.
How principled coders outperform the competition
11:11
Learn Database Normalization - 1NF, 2NF, 3NF, 4NF, 5NF
28:34
Solving one of PostgreSQL's biggest weaknesses.
17:12
Просмотров 197 тыс.