Pricing Blog

Has anyone tried implementing IndexedDB for large datasets?

  • _bazza__-1377624814470299800

    Bazza

    6 months ago

    I'm trying to reduce the amount of calls to Supabase (keep costs low etc...) It wont be an issue for some time but all being well, my user base and data set will grow into the 1000's.

    I'm looking at solutions for this. Currently I'm storing the data in a variable when the page loads, my search and filter page is using this variable with a formula.

    Looking at IndexedDB for storing my public data on the client side. Has anyone else done somethnig like this?
  • lucasg-1377627674822053889

    Lucas G

    6 months ago

    Good luck on using it with Safari 😅
  • You could also use an alternative db like InstantDB which uses indexeddb and implements the sync layer for you
  • How much data are we talking about though?
  • _bazza__-1377629933286854816

    Bazza

    6 months ago

    Ok, this is hard to estimate. Without giving away too much detail I've just asked ChatGPT to estimate the data size. It knows my schema and my niche. If I manage to get 100% of the UK market for my niche then I'm looking at about 16mb
  • Tod-1377629934884884502

    Tod

    6 months ago

    Great job @Bazza! Your contribution to the Nordcraft Community just made you advance to Community Level 2! 🌲
  • _bazza__-1377631820715393129

    Bazza

    6 months ago

    I know 100% of the UK market is crazy, but we will eventually expand out into Europe too
  • lucasg-1377651364921999462

    Lucas G

    6 months ago

    But how much data do you need to store now?
  • Are you seeing performance issues with loading it from a static file as you are now?
  • _bazza__-1377659531018113124

    Bazza

    6 months ago

    Not a lot at all, a few kb but I'm trying to build for scale. Not seeing any performance issues