• Nibodhika@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    8 months ago

    This looks awesome and exactly what I have been looking for.

    One question about implementation just out of curiosity, is there any database? I’m worried that when it gets to hundreds or thousands of pages querying things becomes slow if it’s just scanning files.

    • zef@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      8 months ago

      That said, I have not tested this with hundreds of thousands of notes (I have close to a thousand myself). No performance issues there, but…

    • zef@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      8 months ago

      Yes, it’s using SQLite under the hood in Online mode and IndexedDB in the browser in Sync mode.

      • Nibodhika@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        8 months ago

        SQLite should be more than enough, I can’t find the file on the space folder though, is it created inside the docker container on server startup? Is there a reason not to store it in space so it doesn’t need to be regenerated each time?

        • zef@lemmy.worldOP
          link
          fedilink
          English
          arrow-up
          1
          ·
          8 months ago

          It’s .silverbullet.db in the root of your space folder. Note that because there’s no schemas in SB, SQLite is used as a fancy key-value store and many queries become somewhat (but not very) optimized table scans. In this SQLite file you’ll see a “kv” table that contains everything.