SurrealDB in 100 Seconds

Поделиться
HTML-код
  • Опубликовано: 14 сен 2022
  • SurrealDB is a "NewSQL" multi-model database with an impressive list of features from popular relational, graph, and document paradigms. Its query language is based on SQL, but does not rely on JOINs for queries.
    Full Tutorial Coming Soon on Beyond Fireship / @beyondfireship
    #database #programming #100SecondsOfCode
    🔗 Resources
    SurrealDB Github github.com/surrealdb/surrealdb
    Surreal Docs surrealdb.com/
    SQL in 100 Seconds • SQL Explained in 100 S...
    7 Database Paradigms • 7 Database Paradigms
    🔥 Get More Content - Upgrade to PRO
    Upgrade to Fireship PRO at fireship.io/pro
    Use code lORhwXd2 for 25% off your first payment.
    🎨 My Editor Settings
    - Atom One Dark
    - vscode-icons
    - Fira Code Font
    🔖 Topics Covered
    - What is SurrealDB?
    - Is SurrealDB legit?
    - Databases written in Rust
    - Multi-model databases
    - What is the best database?
    - Database with realtime updates
  • НаукаНаука

Комментарии • 755

  • @jaimemorganhitchcock6195
    @jaimemorganhitchcock6195 Год назад +7072

    Hi Fireship! SurrealDB Founder here with my brother Tobie. Wow! Thank you very much indeed for this video! Just the two of us at the moment but aiming to grow very quickly. We are working on lots of performance improvements, GraphQL integration, and our own key-value storage engine coming in due course. Thank you once again for this video! We really appreciate it.

  • @abdisamadkhalif4283
    @abdisamadkhalif4283 Год назад +1063

    Respect for the people undertaking these challenges. Databases are getting exciting these days.

  • @Dubs3
    @Dubs3 Год назад +856

    This is one of the coolest new DB projects I’ve seen in a while.

  • @oplik0
    @oplik0 Год назад +893

    A fairly interesting part of this project IMO is its license - the core is not actually FOSS, it's under a permissive version of BSL that allows for basically any usage outside of offering DBaaS (which is how they're planning to monetize it), but they commited to a rolling time limit where the license for each release will convert to Apache License 2.0 after 4 years.
    Which honestly seems like an interesting compromise between preventing a Cloud platform from just taking the code and ultimately having it fully open (albeit after some time) so that even if development stops someone might at least pick up an older version.

    • @wanderingthewastes6159
      @wanderingthewastes6159 Год назад +124

      I’ve always wondered why more people don’t do this type of “It’ll be 100% FOSS in X years so I can earn some money before it” type of license/agreement.

    • @RoadArchie
      @RoadArchie Год назад +52

      @@wanderingthewastes6159 probably annoying as shit to implement

    • @ThePedrolic
      @ThePedrolic Год назад +56

      This is fascinating and seems like it could serve as a really good model of FOSS moving forward, especially for companies who are skiddish about open sourcing their software

    • @fltfathin
      @fltfathin Год назад +57

      @@wanderingthewastes6159 pretty sure that is the original intent of patents, dissemination of technology without giving away your right to monetize it

    • @scheimong
      @scheimong Год назад +46

      I actually love this idea. As long as we're not in "the communist utopia", FOSS still can't pay the bills with passion alone. It's only fair that their own work gives them a bit of exclusivity and therefore competitive advantage.
      TBH making a living with FOSS has always been my distant career dream. Maybe one day in the future I will also adopt this model with my own projects.

  • @Fireship
    @Fireship  Год назад +285

    There’s more to this story… Go beyond ruclips.net/video/LCAIkx1p1k0/видео.html

    • @sporefergieboy10
      @sporefergieboy10 Год назад +8

      Im gay and obsessed with you

    • @shateq
      @shateq Год назад +1

      How about "How to byo database?" Tutorial? (see how it works moment)

    • @Kat21
      @Kat21 Год назад +1

      I've been waiting for this video! I saw Code To The Moon's video and i was eventually hoping for this

    • @Arabian_Epileptic
      @Arabian_Epileptic Год назад

      @@sporefergieboy10 🤦‍♂️

    • @oncedidactic
      @oncedidactic Год назад

      YES PLZ

  • @DavidL344
    @DavidL344 Год назад +207

    The timing is impeccable, I literally found out about the project yesterday!

    • @420moby
      @420moby Год назад +2

      same about 3 days ago for me

    • @siveroo7493
      @siveroo7493 Год назад +6

      ikr, its _surreal_

    • @muhammadmejanulhaque3305
      @muhammadmejanulhaque3305 Год назад

      yeah, I found it from his tweet

    • @thomaslisankie342
      @thomaslisankie342 Год назад +2

      Knowing how quickly Jeff is able to go from finding out about something a video, he might have found out about it yesterday too

    • @Zihad
      @Zihad Год назад

      me 3 days ago hahaha

  • @KanadaKid19
    @KanadaKid19 Год назад +55

    This is the coolest looking project I've seen in a long time! Even for Fireship I've never had so many ideas "click" or gone from "who cares?" to "oh no that seems really useful!" so quickly before.

  • @wholesome8691
    @wholesome8691 Год назад +590

    another db to put 10 years of experience in my portfolio

    • @tsukiiiiiii
      @tsukiiiiiii Год назад +1

      true

    • @u4yk
      @u4yk Год назад +23

      It has to be senior level, too.

    • @sguptzz
      @sguptzz Год назад +34

      and still get junior dev role

    • @karinaplay9025
      @karinaplay9025 Год назад +2

      Ajajajajajajaja

    • @nonominox
      @nonominox Год назад +12

      This joke is like the running gag of all Fireship comment sections 😹

  • @zhehuizhou
    @zhehuizhou Год назад +58

    OMG, I noticed this project over the weekend and was wondering when it will be covered by Fireship 100s series, and here it comes! 😃

    • @vasiovasio
      @vasiovasio Год назад +1

      He is Always Trendy AF!

  • @theherk
    @theherk Год назад +17

    This database is the most exciting project I've seen in a good long time. Glad it is generating some buzz.

  • @scienc3tv
    @scienc3tv Год назад +19

    I think I never wanted a project to succeed like this one!
    Keep up guys!

  • @marcoscarlomagno3065
    @marcoscarlomagno3065 Год назад +33

    Javascript inside a SQL query 🤯. What's next? Machine learning interpreting queries like 'Select my favorite puppy'? Awesome

    • @aislanarislou
      @aislanarislou Год назад +1

      Thats should be freaking awesome too!!

    • @vaisakhkm783
      @vaisakhkm783 Год назад +2

      wow that's a uniq concept

    • @maxwellflitton3973
      @maxwellflitton3973 6 месяцев назад

      Hey I'm Maxwell Flitton (author of the O'Reilly async rust book and Packt book rust and web programming), SurrealDB hired me about 8 months ago to build an ML engine. I got it stable about a week ago. You can train ML models in either SkLearn or PyTorch, it compiles to our own surml file format, and you can include it now in your SQL statements, so you can run ML in your SQL queries. Do you can get ML models to calculate results and use those results in queries. In terms of sentences, I'm now working on tokenizers like BERT, and combining this with Emmanuel's (the guy who put JSON in Redis DB and is now at SurrealDB), vector search, we will be able to interpret sentences in the SQL query in the future

    • @marco_ruizv
      @marco_ruizv 2 месяца назад +1

      This aged well...

  • @souls.7033
    @souls.7033 Год назад +7

    Was waiting for your video since the day I discovered SurrealDB. Congrats to the two founders. They made a fantastic product.

  • @codetothemoon
    @codetothemoon Год назад +25

    Thanks, fantastic video! Glad this thing is getting the attention it deserves!

    • @coder3101
      @coder3101 Год назад +10

      You covered it before Fireship! I got to know about it from you. Thank you for your videos.

  • @nicky_rads
    @nicky_rads Год назад +3

    Woah, really cool project! All the bells and whistles. Looking forward to the extended cut

  • @didyouknowamazingfacts2790
    @didyouknowamazingfacts2790 Год назад +8

    As a DBA this is pretty cool. Once I started learned about NewSQL databases about 8 years ago. I knew it would be the future.

  • @Seltyk
    @Seltyk Год назад +4

    It's embarrassing that this video contains more information than the entire SurrealDB Rust SDK documentation

  • @davidyoder5890
    @davidyoder5890 Год назад

    Really looking forward to the deeper dive on your new channel!

  • @leetaeryeo5269
    @leetaeryeo5269 Год назад +5

    I learned about this db earlier this week and I’m not gonna lie, it’s got me excited about recent db developments.

  • @cddelgado
    @cddelgado Год назад +5

    This is easily the most wild database I've ever seen. I had to stop and count the months because I thought it was an April Fools joke at first. This is amazing and I dread the day I find the project that needs it.

  • @peegee101
    @peegee101 Год назад

    Very kewl and looking forward to your beyond Fireship edition of the explanation!

  • @Brajgamer
    @Brajgamer Год назад +239

    This sounds too good to believe, would love to see some critical reviews of this.

    • @pmj_studio4065
      @pmj_studio4065 Год назад +43

      'cause, you know, _surreal_ xD
      They couldn't pick a better name imo

    • @hojdog
      @hojdog Год назад +12

      I had to check if it was April 1st, and even after that I still didn't believe it since fireship is a true jokester even on the most sensible of days.

    • @Mankepanke
      @Mankepanke Год назад +9

      Seems performance is very slow. 15ms to query a single field from a DB with a single table with a single record, when Fireship demonstrated it.
      I have to try it myself before I know, but I suppose that is the main drawback right now.

    • @Brajgamer
      @Brajgamer Год назад

      @@Mankepanke Thanks for the information. All classic DBS have been through rigorous performance optimization in all these years. So if the slow performance isn't by design, it's a great tool to keep a tab on.

    • @uema
      @uema Год назад +33

      @@Mankepanke That was the HTTP request time, the DB itself took 300~600μs to perform the query.

  • @athreyamurali1439
    @athreyamurali1439 Год назад +74

    I look at these new database designs and wonder how people can be this innovative. This looks so cool, definitely would want to explore the creators' design process for this.

    • @SogMosee
      @SogMosee Год назад +4

      This right here

  • @user-jl7xw1oq5v
    @user-jl7xw1oq5v Год назад +1

    Wow, it looks amazing!!!
    I will definitely use it in my next project

  • @DominicFuchs
    @DominicFuchs Год назад +1

    Wow. That's really sick. I will actually try it out in one of my upcoming projects.

  • @AlbertCloete
    @AlbertCloete Год назад

    I was waiting for your video on SurrealDB!

  • @tagKnife
    @tagKnife Год назад +5

    SurrealDB looks surreal. I cant wait to use it and convince my company to use it.

  • @cheegum6296
    @cheegum6296 Год назад +1

    I am a windows systems admin who has dealt with databases for installation and very minimal troubleshooting. I don't see myself getting into databases but this was amazing!

  • @fvbixn
    @fvbixn Год назад

    Whoa, all of the features really sound awesome. Gotta try it out on a test project. It's many things I dream about that SQL Databases would have.

  • @alokmtu
    @alokmtu Год назад

    Love this! The feature list is so rich. Surreal

  • @covle9180
    @covle9180 Год назад

    I am here for all of it. This is a cool project!

  • @mierenmans881
    @mierenmans881 Год назад

    This sounds so surreal. Really excited to try and use it in my next project

  • @heckyes
    @heckyes Год назад +19

    Wow, that's impressive. Might finally replace MySQL in my personal project stack.

  • @walderfranco
    @walderfranco Год назад +1

    Algo que esperaba desde hace tiempo. Graciasss, buen video, la base de datos del futuro.

  • @dessallidev4890
    @dessallidev4890 Год назад

    broken it down makes it seem so user-friendly and easy to use. I can’t wait to start making soft! Thanks again!

  • @jonahbranch5625
    @jonahbranch5625 Год назад +1

    I had a feeling you'd cover this soon!

  • @barloc2
    @barloc2 Год назад +1

    The specs were so surreal, at some point I started to doubt them. But man, this is awesome.

  • @waseemtahir6740
    @waseemtahir6740 Год назад +7

    Ambitious project, hope it can deliver what it promises, and if it does then it would just revolutionise db development.

    • @SogMosee
      @SogMosee Год назад +4

      full text search and real-time events? schema and schemaless?
      Its on track to put dynamodb, mongodb, mysql, firebase, and neptune all out of business in one shot

  • @micahmeadows9703
    @micahmeadows9703 Год назад

    Your editing style is unmatched.

  • @charlesm.2604
    @charlesm.2604 Год назад

    I had my eyes on this project for a few weeks now it's time to contribute.

  • @Xeoncross
    @Xeoncross Год назад +1

    Finally, a database powerful and flexible enough to handle every type of transport layer and query system I'm going to need to expose my react counter button with.

  • @this.channel
    @this.channel Год назад

    This looks really cool. I've been thinking lately about what could dethrone SQL and never imagined something this cool could be created. SQL could be the SQL killer.

  • @JeremyChone
    @JeremyChone Год назад +1

    This is awesome. Building a Rust desktop app template right now and this could be a great fit. I need to see how simple it is to embed. I looked at Sled, and while very nice, makes schema evolution kind of hard.

  • @jordanstafford5110
    @jordanstafford5110 Год назад

    Looking forward to that guide! Thanks again

  • @abnoco
    @abnoco Год назад +2

    Thank you for making this 100 seconds because at 101 seconds, my head would explode.

  • @seth_deegan
    @seth_deegan Год назад

    I'm HYPE for this!

  • @sage_gamers
    @sage_gamers Год назад

    Please make video on your journey as a developer and the ups-downs you faced. btw love watching your video and it inspires a lot ^⁠_⁠^

  • @Rasecz
    @Rasecz Год назад

    Indeed sounds surreal. Gotta try this out on my next one

  • @alinawaz4034
    @alinawaz4034 Год назад

    This looks Awesome!

  • @amcmillion3
    @amcmillion3 Год назад +1

    This DB looks incredible.

  • @brandonmint00721
    @brandonmint00721 Год назад +1

    Really excited to use this

  • @xBrainZy
    @xBrainZy Год назад +1

    I'm not fan of getting deeper into any SQLs but I'm tempted to dive into this 💥💥

  • @aldovia2242
    @aldovia2242 Год назад

    “Engine is written in rust” - I’m sold!

  • @VincentJenks
    @VincentJenks 4 месяца назад

    Love the concept! I’ll definitely be taking it for a spin soon and keeping an eye on its progress. Hope to see this get market traction, because traditional RDBMS systems have been showing their age for quite a while. It’s all just too difficult to manage. I’m curious to see if cloud vendors catch on to Surreal. Also curious about admin around it, dev lifecycle, etc. What do migrations look like? So many questions. Exciting stuff!

  • @titan8788
    @titan8788 Год назад +2

    Very cool! Can you do 100 seconds of BASIC next?

  • @arnoudt
    @arnoudt Год назад +1

    SurrealDB raises 6M for its database-as-a-service. Tech Crunch just published the news yesterday (Jan 4 2023). Watched this video yesterday, thought I should come back to comment for those interested.

  • @lancemarchetti8673
    @lancemarchetti8673 Год назад

    So excited about Sureal!!

  • @pengain4
    @pengain4 Год назад +6

    Checkout EdgeDB as well. It's more mature, production-ready and has better tooling (migrations, web UI etc).

  • @carpenecopinum1665
    @carpenecopinum1665 Год назад +18

    Being able to have JS directly in the query sure looks nice. For the rest I'm a bit on the fence about it... one thing I've been looking for, but never could really find is basically a relational DB that is queried more like a NoSQL DB. Postgres does a good portion of that already, with it's ability to aggregate stuff as JSON (so things like "Get me all the users and their top 10 posts each and for each post the top-rated comment" become expressible in a single query, which wouldn't be possible with most other RDMBSs), but the queries become kind of unwieldy very quickly and also don't compose very well. Something more along the lines of GraphQL, but meant as a real DB querying language and not an API design pattern would be great...

    • @bienv2lis
      @bienv2lis Год назад +2

      Check out ArangoDB and AQL

    • @BosonCollider
      @BosonCollider Год назад +2

      You may be interested in the pg_graphql postgres extension. It makes querying postgres really comfy since you can mix graphql and sql easily when writing queries that are supposed to return json.

    • @carpenecopinum1665
      @carpenecopinum1665 Год назад

      @@BosonCollider will definitely have to look into that. Since I'm already on PostgreSQL, having something on top of it so I can migrate smoothly will be a huge plus.

    • @emmanueloluga9770
      @emmanueloluga9770 Год назад

      @@bienv2lis Thanks for the recommendations

  • @basheyev
    @basheyev Год назад +43

    Often when you try to combine the strengths of technologies into one product, you end up with a product that combines all the weaknesses. Anyway, I wish you success guys!

    • @gnosis8142
      @gnosis8142 Год назад +2

      With Physical Technologies - definitely ― with Virtual Technology - there's no such limit.

    • @Wubwub772
      @Wubwub772 11 месяцев назад

      ​@@gnosis8142 of course there's limits... software design is all about making the right trade offs

  • @Equilibrier
    @Equilibrier Год назад

    This is just too awesome !!!

  • @Arabian_Epileptic
    @Arabian_Epileptic Год назад +1

    This was surreal!

  • @miguel_bogota
    @miguel_bogota Год назад +1

    OMG this db is awesome!

  • @gaurdianAQ
    @gaurdianAQ Год назад +3

    Would love to see you do a video on ArangoDB as well, sounds like it and SurrealDB have some stuff in common.

    • @bienv2lis
      @bienv2lis Год назад

      I have tried probably a dozen alternatives and ArangoDB is the one that turned out perfect for me. I've been using it 2 years now and AQL is like a dream.

    • @gaurdianAQ
      @gaurdianAQ Год назад

      @@bienv2lis nice, at some point I'm hoping to mess around with different databases just to learn more about them, Arango is definitely on my list

  • @awsafchowdhury5236
    @awsafchowdhury5236 Год назад

    I feel like it's no exaggeration to say you are a godsend. I've been making my own soft since i was 14ish and since then it's beco my

  • @randall.chamberlain
    @randall.chamberlain Год назад +1

    A quick shout to my man Jeff, 99 and still rocking the boat.

  • @shimadabr
    @shimadabr Год назад +3

    Now that's a new and exciting project! With potential to change for the better the development process, not another JS framework.

  • @jort93z
    @jort93z Год назад

    this is so cool. I want to learn it.

  • @wfl-junior
    @wfl-junior Год назад

    This is insane, actually surreal.

  • @ScoutSniperMC
    @ScoutSniperMC Год назад +2

    I really appreciate the improved flexibility in data modeling. I’ve had to work on projects that imposed using MySQL on largely document-oriented data, and it was an over-budget NIGHTMARE.
    I’m a little concerned as to how many APIs they’re offering, feel like such a project needs lots of focus.

    • @cryonim
      @cryonim Год назад +2

      sql goes out of hand real fast, but it is the "tried and tested" thing with a lot of development so its the db standard.

  • @master9391
    @master9391 Год назад

    wow, so many features, it seems like a surreal database.

  • @info662
    @info662 Год назад +2

    That's so Surreal!

  • @soviut303
    @soviut303 Год назад +1

    Would be really nice to see a built in GraphQL endpoint for this.

  • @OzzyTheGiant
    @OzzyTheGiant Год назад

    I could be wrong but the way this database was presented makes me think that if it's this good, backend projects could be vastly simplified

  • @freakstyle1st
    @freakstyle1st Год назад

    Finally🔥🔥

  • @dalisoft
    @dalisoft Год назад

    I was thinking Beyond Fireship is fake account and copies video from Fireship. 😂
    I will subscribe, you is one of best tutorial maker. Within 100 seconds and very clear

  • @sujezz
    @sujezz Год назад

    I found out about it like 2 days ago. I'm more than interested in trying in out once they support more languages.

  • @havisvh
    @havisvh Год назад +3

    Hi can you please do a video on Parse Platform , I don't know if it is a firebase alternative , but It is pretty easy to use.

  • @BHVampireLF
    @BHVampireLF Год назад +2

    Damn, that's too beautiful to be real. Coincidentally I'm going crazy choosing a DB for my new project, because I really hate every one of the databases I've used.

  • @_sevelin
    @_sevelin Год назад

    Whoa, thats a powerful DB, gotta try...

  • @TheIndieGhost
    @TheIndieGhost Год назад +1

    It's official: Fireship is becoming a Database Channel after undergoing a web dev phase.

  • @sovietxcp4288
    @sovietxcp4288 Год назад

    good work ya gini

  • @amjed-ali-k
    @amjed-ali-k Год назад +5

    All in one DB for real 😎

  • @GlitchyPSI
    @GlitchyPSI Год назад +1

    This project is drop dead crazy

  • @i3looi2
    @i3looi2 Год назад

    Will wait for the benchmarks.

  • @dhiliph98
    @dhiliph98 Год назад +8

    System design interviews are gonna get even harder 😭

    • @dhiliph98
      @dhiliph98 Год назад +11

      Easier I guess.. No more discussing the tradeoffs between databases.

    • @demonlegit9012
      @demonlegit9012 Год назад +12

      @Fayaz Mohammad Every sys designer interviewee is a Schizo

    • @shashishekhar----
      @shashishekhar---- Год назад +3

      This is the most interesting comment thread I've seen on this channel lol

  • @4.0.4
    @4.0.4 Год назад

    This is actually really interesting. How rough around the edges is it?

  • @A.D.G
    @A.D.G Год назад +1

    Lots going on in the DB space. I’ve been using EdgeDB for the last couple of months and have been enjoying it. Anyone have experience or points of view between this and Edge?

  • @wandenreich770
    @wandenreich770 Год назад

    Best thing ive heard👌

  • @theinhumaneme
    @theinhumaneme Год назад

    I've been following their LinkedIn profile of SurrealDB for weeks now, this sounds really cool to be used projects

  • @FreeLibyanism
    @FreeLibyanism Год назад

    time to change my project's db again 🔥🔥

  • @Raezard77
    @Raezard77 Год назад

    MY BRAIN IS F***ED
    THIS IS HEAVENLY!

  • @bdbose123
    @bdbose123 Год назад

    got a new db to implement for a weekend project

  • @FourOf92000
    @FourOf92000 Год назад +2

    1:46 congratulations to Jeff

  • @nrdfoss
    @nrdfoss Год назад

    this DB is truly surreal

  • @MtthwBrwng
    @MtthwBrwng Год назад

    Neat! It's similar to Arangodb

  • @TheR0yalBeast
    @TheR0yalBeast Год назад

    This looks like wizardry. I love it,

  • @immortalsun
    @immortalsun 7 месяцев назад

    Holy shit. This is absolutely insane! Some might even call it surreal.

  • @gotxe
    @gotxe Год назад +2

    Waiting for the EdgeDB review 🙂

  • @jeffg4686
    @jeffg4686 Год назад

    Was wondering about the scenario where you have a bidi stream, like a chat server or game server. Would the Surreal DB be able to host the server code (either starting another process on some port, or otherwise connection some running code started within own its own process)? Or would you just need a separate process from the get go in this case?