Beyond Surreal? A closer look at NewSQL Relational Data

Sdílet
Vložit
  • čas přidán 15. 09. 2022
  • Let's take deep dive into SurrealDB - a new database written in Rust. Find out how it models relational data without JOINS and learn the basics of its API in this beginner's tutorial.
    #database #tutorial #sql
    SurrealDB in 100 Seconds • SurrealDB in 100 Seconds
    Surreal Docs surrealdb.com/docs/surrealql/...

Komentáře • 385

  • @ANGELRA
    @ANGELRA Před rokem +142

    The rust community is creating a lot of cool projects

    • @karpfenboy
      @karpfenboy Před rokem +34

      this has been years in the making, and converted from a golang version into rust only very recently
      not to deny your statement though lol

    • @jmrumble
      @jmrumble Před rokem +14

      Interviewer: How are your programming skills?
      Not Me: A little rusty...
      Interviewer: Hired!

    • @Yusuf-ok5rk
      @Yusuf-ok5rk Před rokem +5

      @@karpfenboy it only proves that rust is future and all other languages are merely the past

  • @sampathsris
    @sampathsris Před rokem +132

    Even if the performance gains don't arrive, it's still great. Not every project needs to handle millions of records. For projects that handle several thousand records the performance will be totally acceptable and the relationship syntax will greatly reduce development complexity. This seems like a must have in my toolbelt.

    • @MechMK1
      @MechMK1 Před rokem +5

      Definitely agree. Being able to write intuitive and easy-to-maintain code is also very important, especially if you only have a very limited number of concurrently active users.

    • @EdubSi
      @EdubSi Před rokem +9

      Not sure I would agree here. It's a database - not scaling is not an option. I would store my data somewhere else if fast & synchronised access is not needed.

    • @cifuentesmx
      @cifuentesmx Před rokem +10

      @@EdubSi again, it depends on the project,

    • @PatalJunior
      @PatalJunior Před rokem +2

      True, I most likely don't need the best performing stuff, just need something to get it working , instead of spending precious time developing more complex and hard to maintain tech stacks.

    • @KyleSmithNH
      @KyleSmithNH Před rokem

      I suppose if you're sure you'll never need to scale it, but most projects worth working on do have some scaling goals at some point. Not sure I'd want to invest in this technology then have to re-write it all in the future.

  • @TheMeldanor
    @TheMeldanor Před rokem +145

    I've to say - videos in that format are very very useful to me. Enough information to form an opinion if a software is worth the time investing to learn more or even consider using it in a new tech stack. But the information is not too deep to get lost.Thank you, a very good video.

    • @LinkEX
      @LinkEX Před rokem +8

      Seconded!
      While the 100 seconds videos are always a joy to watch, I _sometimes_ get an impression that's quite different from the actual experience with the actual tool.
      This is like the 101 that gives a look and feel of the thing in practice.

    • @clintquasar
      @clintquasar Před rokem +1

      ^This

  • @yacht.
    @yacht. Před rokem +170

    SurrealDB seems fairly easy to use, not to mention the joins. Keep coming with this type of videos. They are informative, long enough, and cool.

  • @nexxai
    @nexxai Před rokem +276

    Man, I'm barely a developer and Surreal looks so goddamned awesome. I'm starting to think about a career change from architecture and if their promises hold up, I could definitely see myself getting deeper into this.

    • @sigreer83
      @sigreer83 Před rokem +16

      Same dude. Except I'm not an architect - I mainly sit around in my underpants watching CZcams videos, but this makes me consider giving all that up...

    • @TheInvestmentThesis
      @TheInvestmentThesis Před rokem

      Think twice before jumping in development. Companies are laying off and the next decade might not be as bright as the last one. Cheers if you guys still make the switch :)

    • @solastrr1795
      @solastrr1795 Před rokem +3

      My man talks about changing his life around. I mean rn he sits in his underpants doin nothing and he thinks about developing, you tell him to think twice??? What did companies/colleague did to you man WTF?

    • @P0n...
      @P0n... Před rokem +4

      @@TheInvestmentThesis This has always happened. Recruiting and laying off is just a cycle when it comes to IT and does not mean that things will get harder for future developers.
      This is like clamining that "AI will steal our jobs". It just won't.

    • @dwylhq874
      @dwylhq874 Před rokem +1

      @JT wanna swap? Been a software engineer for 10+ years and writing code for 20. Wish I’d studied architecture and as building tangible things in the real world. Agree, SurrealDB looks Sick! 😍

  • @flipperiflop
    @flipperiflop Před rokem +207

    The DB does look amazing, the queries seem so intuitive to write - I guess the only danger of it is that how easy it makes adding data that one might just no consider a proper structure before writing the code... But man does it look like magic...

    • @darthvader4899
      @darthvader4899 Před rokem +15

      You can also enforce schema too

    • @pjarnfelt
      @pjarnfelt Před rokem +29

      that's like saying that spoons make soup so easy to eat that one might burn oneself, so better stick with forks.

    • @fluffio2976
      @fluffio2976 Před rokem +18

      It's also like saying that exposed wiring makes it so easy to do electrical repairs, but that one might accidentally shock themselves if they aren't careful.
      Making it hard to foot-gun yourself isn't a bad thing in itself. It's at which cost we should argue about.
      Some will prefer the freedom of schemaless. Others will prefer the structured nature of a schema.
      I lean towards the latter.

    • @dabbopabblo
      @dabbopabblo Před rokem +3

      @@pjarnfelt in your analogy choosing to use a fork instead of a spoon suggests it will take longer to program with a schema based db , however being burned represents your query’s being so in performant many fail and users are left waiting multiple seconds for anything to load on top of their own internets speed, and or crashes start happening from lack of ram to support the quantity of requests for how long each ones taking. And although as the developer you might not care about a little burn, programming is more like being a chef. Are you gonna serve your soup while it’s still boiling, or make sure it’s just hot? Cause you won’t have many users returning if their experience is being burned by a painstaking slow website or application because of non thought through database scheme or just lack of one

    • @LowestofheDead
      @LowestofheDead Před rokem +6

      @@fluffio2976 If your application could kill someone (i.e. you're in critical systems) then you should be using an enforced schema and other safety checks.
      99% of our applications are _not_ critical systems, yet our DB tools are designed as if they are. How many decades did it take for someone to design something intuitive like this?

  • @Android480
    @Android480 Před rokem +106

    I’d be really curious about performance. If it can match a Postgres, I don’t see a reason to ever use traditional relational databases again. However I doubt it can if you really want to take advantage of those traversal methods.

    • @LabGecko
      @LabGecko Před 4 měsíci

      It seems like it's built where you can pick the tradeoffs you are willing to live with. Some want "all teh speed" while others just want enough speed to be reasonable, but relatable code.

    • @jakobkristensen2390
      @jakobkristensen2390 Před 4 dny

      Here is a great reason for you: Traditional relational databases has ORMs, SurrealDB doesn't

  • @grixzlee3653
    @grixzlee3653 Před rokem +192

    Literally learning while taking a poop. Jeff always clutch with the Videos. 🔥

  • @peterklemenc6194
    @peterklemenc6194 Před rokem +6

    For anyone having problems following this quick tutorial (with Postman)....there are certain specific headers you should add (alongside basic auth)
    In particular:
    NS - {{namespace}}
    DB - {{database}}
    Accept - application/json
    The Accept-app/json header is necessary with the beta-version...for some reason....but adding it will make it finally work

  • @MartinK0870
    @MartinK0870 Před rokem +6

    You're by far my favorite youtuber so far, fun, quick and staying up to date what else a dev would want

  • @TomSaw_de
    @TomSaw_de Před rokem +1

    Brilliant format. Short but also a quickest quickstart. Thank you!

  • @papajohnsuk5965
    @papajohnsuk5965 Před rokem +16

    It has basically everything you;d want which is amazing. I cannot believe how harder it will be to succeed though focusing on so many features. Will definitely use it in a future side project

  • @StiekemeHenk
    @StiekemeHenk Před rokem +16

    I'm currently learning back end development and this sounds amazing.
    Would love to see some performance comparisons

  • @paulshorey1671
    @paulshorey1671 Před 10 měsíci

    Love your videos. Especially long form. Thank you! The longer and more in depth the better.

  • @Majkieboy
    @Majkieboy Před rokem +3

    Very much enjoy these beyond 100 seconds. Keep it up mate!

  • @LaakeBrye
    @LaakeBrye Před rokem +12

    My brother in law told me about SurrealDB last week. Having worked with ArangoDB before, its extremely similar in my opinion but with a future that looks very bright. Really liking what I'm seeing from it so far!

    • @tekrocker
      @tekrocker Před rokem +1

      I love ArangoDB which is much further into development (mature) but this looks more intuitive! I'll definitely be following this project...it has that new, shiny vibe! LOL

  • @jpegjpg
    @jpegjpg Před rokem +1

    I love this format. You are keeping me relevant. Your videos are a great educational tool for continued learning. I'm building an app in tauri solely because you made a video about or else I would have never sought it out.

  • @JB-ub2xc
    @JB-ub2xc Před rokem +1

    I’ve been working a lot with graphical db, and surrealDb seems just like that but more SQL like and with a such easy query langage, i love it !

  • @FuzailShaikh
    @FuzailShaikh Před rokem +1

    Kudos to people who built this. I’m excited about it and would want to learn it’s internal workings

  • @madhudson1
    @madhudson1 Před rokem

    Love this style of videos for previews/overviews of new and upcoming things of interest

  • @DerSolinski
    @DerSolinski Před rokem +1

    Man love the direct way you teach stuff.
    Keep'n coming ^^

  • @resilientbit3
    @resilientbit3 Před rokem

    It's surreal 😍indeed! Your 100s series is good way to get introduced with techs in the industry. Whereas this format is great help for devs to decide to opt for a certain new tool, API or framework etc.

  • @amirhosseinahmadi3706
    @amirhosseinahmadi3706 Před rokem +4

    A video on EdgeDB would be nice

  • @bugs389
    @bugs389 Před rokem +29

    Love the looks of this, and the beyond 100 seconds video format too. This is what modern DBs should be.

    • @maskettaman1488
      @maskettaman1488 Před rokem +2

      Modern DBs are what they are for a reason. Have fun diagnosing your performance issues on a production database after a dozen of developers have crafted the most obtuse and convoluted queries possible. The syntax might be simple on the surface but the generated queries under the hood are going to explode quickly

  • @hisoka44444444
    @hisoka44444444 Před rokem

    Looks amazing, I just have to try it out now! I love this format of video even more than 100 seconds. Both are great though, 100seconds is just enough to learn what something does. Longer is better to get the basic understanding and some examples in. Great work!

  • @howardleen4182
    @howardleen4182 Před rokem +1

    Man! A "deep dive" and it's only a little less than 8mins. You do amazing content and I know quality takes time but please moooore of this! I love this new channel idea btw!

  • @nouaimmebarki8885
    @nouaimmebarki8885 Před 11 měsíci

    Perfect tutorial especially that it contains no music, thanks so much!

  • @unwisestnevada1
    @unwisestnevada1 Před rokem +1

    Your videos are amazing. But the beyond format is getting another unreachable level. Just congrats!!!!!

  • @ApsJoo
    @ApsJoo Před rokem

    Really enjoyed the beyond format, keep it up!

  • @Mikenight120
    @Mikenight120 Před rokem +1

    Who doesnt love going Beyond with Jeff! Keep this videos coming

  • @truthmatters7573
    @truthmatters7573 Před rokem

    This db is pure gold, and the beyond 100 seconds is great!

  • @KvikDeVries
    @KvikDeVries Před rokem

    '100 seconds' format is great, but so are the deep dives. Thanks to the superhuman information compression skills of the author I guess, I've seen deep dives that took an hour to say what you would say within 5 minutes. Easily. Thank you :)
    And Surreal seems like one of those cases where status quo of SQL/NoSQL has been around for so long that people got used to inconveniences, and only after you see what else is possible you go "wow, that's so much better, why no one thought of this before?".

    • @matthiaslangbart9841
      @matthiaslangbart9841 Před rokem

      Because some pain in the ass must build up to make improvement worthwhile. 😃

  • @Undef1Gned
    @Undef1Gned Před rokem

    Love the tutorial! I can see how easy it will be to build a content manager directly on top of this db

  • @scienc3tv
    @scienc3tv Před rokem +2

    I don't know why I want it so badly that this project to succeed!
    Good luck guys! 💚

  • @syntrax-og
    @syntrax-og Před rokem +2

    Finally! Some actual tutorials!

  • @khageshsharma1014
    @khageshsharma1014 Před rokem

    This video and this video format is awesome. Please keep doing more of it

  • @microcontrolledbot
    @microcontrolledbot Před rokem

    You publish a video on this database I'm going to watch it and give it a thumbs up every time.

  • @keharacek
    @keharacek Před rokem

    I have zero experience with SQL dbs, but this just feels so intuitive! Cool video, thanks!

  • @BladeTrain3r
    @BladeTrain3r Před rokem

    Good mini-dive, like the additional video format. I kinda want to play around with SurrealDB myself but I need to think of some kind of project to use it in.

  • @didyouknowamazingfacts2790

    As a DBA this is awesome. I knew NewSQL/in-memory databases would be the future once I learned about it about 8 years ago.

  • @THEGamingninjaGamingPC

    I found about about SurrealDB the other day, it looks incredibly interesting, can't wait until to use it for something

  • @thecodebuddha7246
    @thecodebuddha7246 Před rokem

    Thanks a lot for the tutorial! I'm thinking of trying it out in a small project I'm currently working on.

  • @MA-nw3xf
    @MA-nw3xf Před rokem

    Man, SurrealDB sounds really great. I really hope that it rises in popularity.

  • @matt_frangakis
    @matt_frangakis Před rokem

    The dot notation is amazing! I would be very interested to see the database performance for time series data, and the performance of the dot notation on tables with millions of records!

  • @Private-GtngxNMBKvYzXyPq

    Great content presented with aplomb. More please. Thank you.

  • @TreoTra93
    @TreoTra93 Před rokem

    love the format!

  • @kurshadqaya1684
    @kurshadqaya1684 Před rokem

    We like this format. Thank you and keep it up.

  • @duwangchew
    @duwangchew Před rokem +1

    I really like this more in depth content, keep it up.

  • @joshuabharathi706
    @joshuabharathi706 Před rokem

    so happy to have beyond 100s back

  • @petrsehnal7990
    @petrsehnal7990 Před rokem

    Awesome! Thanks for another great video!

  • @theinquisitivelayman
    @theinquisitivelayman Před rokem

    I like this more than 100 second video format.

  • @andythedishwasher1117

    I'm super excited to try this out.

  • @Dutchie968
    @Dutchie968 Před rokem

    This is a good length to get a better understanding after your interest is peeked by the 100s vid

  • @Beastintheomlet
    @Beastintheomlet Před rokem

    I love this format.

  • @Pariah902
    @Pariah902 Před rokem

    Super Video format and SurrealDB sounds great

  • @BosonCollider
    @BosonCollider Před rokem +3

    Bruh, if this kind of stuff surprises you, look up this four decades old thing called datalog, which was one of the oldest forms of the relational model. Modern implementations with different flavours include datomic and typedb.
    Vanilla SQL is just the implementation of the relational model that got big first, not the best one. You are just realizing that the actual relational model is really, really good, and that the main advantage of SQL compared to something better is being a universal standard. Having this kind of extended feature set where you can effectively do basic logic programming is usually called having a deductive database.

  • @AntoniGawlikowski
    @AntoniGawlikowski Před rokem

    I like this beyond 100s format!

  • @alifarahat
    @alifarahat Před rokem

    That looks amazing 😍. More on this please...

  • @lebeeg
    @lebeeg Před rokem

    ..this beyond format is.. NUTS !! I love it. The perfect follow up to 100s.. period. Surreal looks awesome though. Awesome. Hope it will be FOSS anytime soon

  • @mjiii
    @mjiii Před rokem +1

    I'm sure it's not going to perform as well as traditional SQL databases but for hobby projects the advantages of such a simple and versatile query syntax will far outweigh the performance cost. Really cool stuff!

  • @a_maxed_out_handle_of_30_chars

    0:26, haha good primeagen reference there

  • @icodegfx4444
    @icodegfx4444 Před rokem

    Loved this format. Surreal is aptly named

  • @KevinArellano
    @KevinArellano Před 3 měsíci

    Yeah keep making these vids, I love them!

  • @JohnoScott
    @JohnoScott Před rokem

    Great stuff. Keep it up Jeff

  • @Rotem_shwartz
    @Rotem_shwartz Před rokem

    Keep up the good work jeff ❤

  • @jrabelo_
    @jrabelo_ Před rokem +2

    awesome job, it would be really interesting to know how this db works under the hood, multipurpose databases tend to not scale very well

  • @DjCtavia
    @DjCtavia Před rokem

    Seems very interesting, curious to make some tests about this one!

  • @wlockuz4467
    @wlockuz4467 Před rokem

    with the features it offers, the name is so fitting.

  • @alexcyoung
    @alexcyoung Před rokem

    Great vid as always

  • @shmuel-k
    @shmuel-k Před rokem

    I like this beyond 100 second format

  • @cedi2929
    @cedi2929 Před rokem

    Bro this seems like magic! 🤯🤯

  • @GabrielMillerd
    @GabrielMillerd Před 7 měsíci

    It's a great database, very intuitive and powerful.

  • @jeffg4686
    @jeffg4686 Před rokem +1

    Looks amazing. I like their model. They're doing it exactly right, for themselves and the community. Run it as a service for others, you pay for that. Otherwise, go for it. Perfect.I'm a little confused by the "identifier" syntax - coming from a background of integers and sequences and guids being used for identifiers - I love the "join" model (lack of need). I know I could just put a sequence or something there, but not seeing where they are headed with things like 'create table:row_id' - I think just getting back an identifier from the db like a typical db would do would make more sense. That said, I haven't dove into it yet.

  • @typeer
    @typeer Před měsícem

    This was great ty mr ship

  • @fang_xianfu
    @fang_xianfu Před rokem

    Halfway through this video I was like "shame you can't traverse back up the relationships though" and then by the end, I felt good!

  • @IngwiePhoenix
    @IngwiePhoenix Před rokem +4

    I used to write a roleplay website and struggled a lot with properly defining relationships between characters and ultimatively gave up on making it because of the complexity with parts of the implementation. This graph based querying solves so many problems its crazy. Love, love, love this!

    • @Boris_Belomor
      @Boris_Belomor Před rokem

      But it could be solved with a single SQL table. What was the problem?

  • @LabGecko
    @LabGecko Před 4 měsíci

    That looks fracking amazing

  • @adamleblanc5294
    @adamleblanc5294 Před rokem

    This is honestly kind of game-changing. Very rarely does something come along that offers something that is clearly a cut above the competition (looking at you JS frameworks). These mad lads took the best bits of all the major DB types and managed to mould them into a cohesive package. Would love to be able to use this in a real project someday, it's just a little too new to feel secure using on something that's going to be putting food on the table for not only your team but the clients. Hopefully, they can iterate on the performance side of things and get a solid foothold. I think good self-hosting will be key for this to be adopted, but I would totally be willing to pay a license fee for "advanced" features or get an enterprise support license, as long as there is a decent free version for hobby projects/testing/training. If this DB is thriving 5 years from now, I can 100% see this being the default choice when you start a new project.

  • @sage_gamers
    @sage_gamers Před rokem

    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 ^⁠_⁠^

  • @bpo217
    @bpo217 Před 10 měsíci

    I like this video and it's format.

  • @shaunbeh8293
    @shaunbeh8293 Před rokem

    I was not expecting Primeagen's blazingly fast mention :D

  • @cabanford
    @cabanford Před rokem +1

    Dude, you've become step #1 in chasing the techno dragon 🐉

  • @brandonmochi
    @brandonmochi Před rokem +61

    Since the creators of SurrealDB are actually on touch with you, can it be possible to launch a course about this one? A collab between you two, which could be actually useful for us as developers, gives them much more exposure for their product, and you actually get to earn some money monetizing the tutorials :))))))))

    • @dabbopabblo
      @dabbopabblo Před rokem +2

      Chances are knowledge of this database has reached more people than knowledge of this guys CZcams channel. And there’s documentation so why would you need a course? That’s the give me the answers I don’t want to put in the effort type mindset

    • @YuriG03042
      @YuriG03042 Před rokem +14

      @@dabbopabblo nearly every piece of software out there that has a course for, is also documented. That point doesn't hold.
      It doesn't matter if other people know more than Jeff because some people really like the way that Jeff teaches and would rather have him doing the course, which is also a way to support a creator they like.
      Regarding your last sentence, why is that any of your business? It's not your time, nor your money. Why do you feel like this comment could be useful at all? Do you even know what are this person's intentions with knowing this tech? You know way too little to be placing judgment

    • @dabbopabblo
      @dabbopabblo Před rokem

      @@YuriG03042 And what do you know about me to be judging my opinion? Its almost as if anyone can share any opinion they want and judging someone for being judgy is just hypocritical. Like your one to talk about not posting a comment because its "not useful" when you define criticizing an opinion as non useful, yet post a comment about your opinion on the matter.
      But my rebuttal to your counter argument in regards to my original point is; Sure general information tutorials and courses can be useful for understanding the fundamentals, however without digging into the documentation you will never know more about the subject than the person who made the course you took (assuming you only learn from that course and others) when the person who wrote or taught that had to learn from somewhere, and even if that was another course its not a chicken or the egg type question. The courses simply would not exist without the prior knowledge being available through documentation. Even in the case when none is provided because any project that lacks the industry standard of being properly documented will fail to be picked up by the mainstream and not be worthy of spending time making courses on. Point is if something has the potential to have a course made about it(disregarding general concepts of course), the information was already readily available and the people who actually take their work, hobby, or mere interest in programming seriously enough will already have the resources available to fulfill their desire to learn more about the product or library or framework in question with no course as crutches necessary.
      If a course is available as an appetizer into the content by all means necessary watching it can be refreshing before reading through potentially boring documentation. That's the only reason I watched this video as I haven't even touched this database yet and want a better idea of what its capable of before dissecting the documentation and refactoring my production code to use it. But in the end I truly believe requesting a course for something you have the means of learning yourself is a "I don’t want to put in the effort" type mindset.

    • @dabbopabblo
      @dabbopabblo Před rokem

      @Batman Well if you ever find yourself using react maybe you should just reevaluate your choices and learn an actual programming language instead of syntactical abstractions on top of one, like all these kids who've been stumbling through CZcams having the audacity to refer to themselves as developers because they watched a few react tutorials have been doing

    • @dabbopabblo
      @dabbopabblo Před rokem

      @Batman cause "react" developers are the kind of people on stack overflow admitting they avoided working with promises because they are "too" complicated

  • @manuelatuchukwu490
    @manuelatuchukwu490 Před rokem

    New channel, sweet!

  • @DogeMultiverse
    @DogeMultiverse Před rokem

    What a time to be alive!

  • @madhavanrs304
    @madhavanrs304 Před rokem

    I like this video. Thumb up!

  • @jeremysollars5922
    @jeremysollars5922 Před rokem

    im a fan of the deeper dive

  • @ericmackrodt9441
    @ericmackrodt9441 Před rokem

    Wow, that's a lovely query language

  • @neatfastro
    @neatfastro Před rokem

    I also really like the query syntax of arangoDB

  • @darkwoodius
    @darkwoodius Před rokem

    Awesome!!

  • @uziboozy4540
    @uziboozy4540 Před rokem

    Damn this is intuitive

  • @nikensss
    @nikensss Před rokem

    I liked this "beyond 100 seconds" format, so I liked the video and I am letting you know in the comments.

  • @notatallbroe
    @notatallbroe Před rokem

    learned from this vid than all my 16 weeks of school lol

  • @fredrikandersson4918
    @fredrikandersson4918 Před rokem

    Looks really cool. I wonder how the performance compares to established alternatives.

  • @peegee101
    @peegee101 Před rokem

    Awesome, I want more! Give me all you got!

  • @natsuhiboshi7161
    @natsuhiboshi7161 Před rokem

    Letting you know that I do like this format :)

  • @henriquecapozzi
    @henriquecapozzi Před rokem

    Thanks Jeff

  • @ratnamyadav3132
    @ratnamyadav3132 Před rokem

    Great video

  • @lutzleipold5206
    @lutzleipold5206 Před rokem

    MORE, feed me more SURREL! I love your videos.

  • @AceofSpades5757
    @AceofSpades5757 Před rokem +7

    Biggest takeaway for me was the ergonomics. Looks very developer-friendly.