Это видео недоступно.
Сожалеем об этом.

How to use IndexedDB to store data for your web application in the browser

Поделиться
HTML-код
  • Опубликовано: 23 ноя 2021
  • This video will give you an introduction to what IndexedDB is, why you might choose it for your project, and how to use it.
    We'll cover some basic database concepts & terminology as well in case you haven't used other databases before.
    This video is based on the content from my blog post here:
    dev.to/alexeag...

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

  • @ricksegalCanada
    @ricksegalCanada 4 месяца назад +2

    Two years on and this is still an amazing video to jumpstart my indexeddb journey. Thanks for doing this. As others have said, your teaching style is outstanding.

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

    Perfect explanation of indexes.
    Perfect explanation of transactions.
    Thank you for that crystal-clear beginner's walkthrough, helped a ton with these intimidating terms for a newbie like me!

  • @lidestudios5094
    @lidestudios5094 2 года назад +12

    I found out about indexDB only an hour ago and I already feel like I understand everything I need to use it thanks to your video! 👍
    I'm very grateful to have discovered this! It's way better than using local storage for saving long base64 file data, thanks!

  • @jeff-creations
    @jeff-creations 4 месяца назад +1

    Your teaching style is amazing Alex. I love the way that you explain terminology and don't assume we know things straight out of the gate. IndexedDB is much clearer to me now - and for that I thank you! I really wish you had a beginners video on React, would have taught me a ton I'm sure.

  • @edwinbalcarcel8022
    @edwinbalcarcel8022 2 года назад +8

    I'm speak Spanish but i can see that the English content, especially in the dev world is much better than Spanish content. I love this video, i was lost like 3 hours trying understand the concept of this and this guy make the explication super easy. Thank you so much bro!!
    (I'm not an English speaker hahaha)

  • @suhail_developer
    @suhail_developer 6 месяцев назад +3

    A patient, detailed and perfectly explained walkthrough. You deserve much more views mate. Thank you for teaching us once again. I hope you continue to do so.

  • @rahulsaxena5015
    @rahulsaxena5015 2 года назад +30

    Timestamp for the code after the theory explanation:
    10:10
    Brilliant walk-through. Loved it.

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

    Outstanding coverage of IndexDB. Wow, you are a great instructor and teacher. Thank you!

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

    Thank you, I searched exactly for someone who has good knowledge for IndexedDB. I found it right here. :)

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

    I was finally able to figure out IndexedDB after this video. Thanks a ton!

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

    Dude is the teaching brilliantly and has a mere 4.73k subs and then there are stupid people lipsinging songs with a million subs. This is just unfair and sad.

  • @NoName-1337
    @NoName-1337 8 месяцев назад +1

    Great Video for a short overview about this topic. Thank you.

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

    The best I have seen after countless number of search, Thanks man

  • @shabaniddrisu
    @shabaniddrisu 3 месяца назад +1

    Very helpful video man. Thank you 😊.

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

    Thank you so much. till now I was unknown about Indexed DB. Your tutorial is awesome!

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

    You explained important issues quickly and easily. Very good. Do more.

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

    Just about the best intro to IndexedDB I've seen, thanks a lot for this

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

    Thank you!! Very clear explanations.
    Finally a tutorial on indexedDB that I'm not too dumb to understand!!

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

    I watch a lot of RUclips tutorials and this is really great, subscribed 😄thank you!

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

    Thanks Alex - brilliant and detailed tutorial. 👍

  • @solar_tea
    @solar_tea 2 года назад +3

    Hey Alex, first time watching one of your videos and let me tell you, I love the way you expain. I enjoyed every moment of the video. Sometimes I can't believe this kind of content is available for free. Thank you very very much

    • @AlexEagleson
      @AlexEagleson  2 года назад +1

      Thanks for the kind words, you're super welcome

  • @aruntejadhondi2008
    @aruntejadhondi2008 2 года назад +5

    great tutorial & like your hair 😊

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

    Great video. Love your explanation, straight to the point no bullshit or stalling. Love it!

  • @MagnoCRM
    @MagnoCRM 2 года назад +2

    Extremely good content and tutorial. Thank you so much! Great job!

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

    Great content !!! Thank You 🙂

  • @premkumar-ix3jq
    @premkumar-ix3jq 10 месяцев назад

    Hello Man, Thanks for the explanation. I was trying since yesterday to store and retrieve with update. End of the result I always got error. This solution is simply works like a charm with Angular.

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

    Thank you, very clear and nice blog

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

    Awesome 🙌🙌

  • @darrenwilliams582
    @darrenwilliams582 10 месяцев назад

    Hello, what would be an example of why you would want to change the database version?

  • @codingtranquility
    @codingtranquility 7 месяцев назад +2

    God I love this channel

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

    May I ask you a question? how to update a data item in a list in a document, like {user:[{class:"1", time: "2"}]},I don't want to take the data out and put it back after the update is complete, but update it directly after the query meets the criteria

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

    Thank you for this, is it recommended to encrypt data before storing it here? I'm not storing particularly sensitive data but just wouldn't want it potentially exposed to malware, how secure is this?

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

    Thanks for the video really helpful.

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

    Great teacher

  • @davonalbandyan8279
    @davonalbandyan8279 3 месяца назад +1

    The best

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

    If I need to store huge amounts of data what would you recommend?
    Any SQL suggestion?

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

    Is it a good idea to use indexDb for a Next.JS application, user session info? I am currently using cookies but i want to store more information like reading list and saved events etc. would that be suitable or should I stick to cookies and backend database?

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

    Great tutorial, thank you

  • @maimounatraore6982
    @maimounatraore6982 2 года назад +1

    You are the best!

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

    Sir the data you entered was dummy data...please help me getting the data from the user and then putting it into database

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

      for example when we use forms to get the data to make a todo list

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

    thanks a lot Alex

  • @alindebian8295
    @alindebian8295 2 года назад +1

    Hi, where is the blog link you promised in the video?

    • @AlexEagleson
      @AlexEagleson  2 года назад +2

      Oops, good catch, added to description!

  • @pepinogdev
    @pepinogdev 2 года назад +2

    muy buen video :D

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

    When I want to select something I always have to create an index?

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

      Kinda late, but nope. Unless, of course, you want to query using that index

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

    What use is this if not explained how to take input values from an offline file and to store it to indexedDb !!

  • @darz_k.
    @darz_k. 2 года назад

    Great video - thanks
    Didn't you also produce Nirvana's Nevermind?

  • @yaeluriel
    @yaeluriel 2 года назад

    Is IndexedDB very common or what depends that on usage?

    • @AlexEagleson
      @AlexEagleson  2 года назад

      IndexedDB is a bit of a niche tool, most applications that need to store small amounts of user data in the browser will use localStorage
      When you get into larger data-heavy applications that run exclusively in the browser is when IndexedDB starts to be very useful. Look into tools like JIRA, Linear, Notion, and data-heavy browser based apps and check your Storage tab in your browser, you'll probabaly find those and similar apps use IndexedDB to store large amounts of client data to avoid unnecessary server requests

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

      @@AlexEagleson A POS app for example needs indexedDB I guess.

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

      @@gernotpokorny3956 I don't think any specific kind of app "needs" IndexedDB. You could theoretically create a perfectly serviceable POS app using local storage, or even just in memory data depending on how its implemented. It totally depends on the way you choose to design it.

  • @1imoooooooo
    @1imoooooooo Год назад

    Hi,
    This is the second IndexedDb tutorial I've looked at, however, I keep getting errors which I cannot find a solution to.
    I've rechecked my code for both instances to no avail - each time I get "Uncaught DOMException: Data provided to an operation does not meet requirements." Please could you check if I've done this correctly?
    Thanks,
    const indexedDB = window.indexedDB;
    const request = indexedDB.open("CarsDatabase", 1);
    request.onerror = function (event) {
    console.log("ERROR");
    console.log(event);
    }
    request.onupgradeneeded = function () {
    const db = request.result;
    const store = db.createObjectStore("cars", { keypath: "id" });
    store.createIndex("cars_colour", ["colour"], { unique: false });
    store.createIndex("colour_and_make", ["colour", "make"], { unique: false });
    }
    request.onsuccess = function () {
    const db = request.result;
    const transaction = db.transaction("cars", "readwrite");
    const store = transaction.objectStore("cars");
    const colourIndex = store.index("cars_colour");
    const makeModelIndex = store.index("colour_and_make");
    store.put({ id: 1, colour: "Red", make: "Toyota" });
    store.put({ id: 2, colour: "Red", make: "Kia" });
    store.put({ id: 3, colour: "Blue", make: "Honda" });
    store.put({ id: 4, colour: "Silver", make: "Subaru" });
    const idQuery = store.get(4);
    const colourQuery = colourIndex.getAll(["Red"]);;
    const colourMakeQuery = makeModelIndex.get(["Blue", "Honda"]);
    idQuery.onsuccess = function () {
    console.log("idQuery", idQuery.result);
    }
    colourQuery.onsuccess = function () {
    console.log("colourQuery", colourQuery.result);
    }
    colourMakeQuery.onsuccess = function () {
    console.log("colourMakeQuery", colourMakeQuery.result);
    }
    transaction.oncomplete = function () {
    db.close
    }
    }

    • @1imoooooooo
      @1imoooooooo Год назад

      Got it working on Google Chrome, idk why Firefox didn't want to conform even though it supports IndexedDB. Thanks for the video :)