Git Product home page Git Product logo

Comments (2)

dfahlander avatar dfahlander commented on June 1, 2024

You can get an observable and all if you could change your model to let a file be represented by a row in a single db instead. (And you'd get better performance).

from dexie.js.

tobiasBora avatar tobiasBora commented on June 1, 2024

Yes, my main issue so far is that this creates a repetition: I want fileInfo to stay in the database as I will export/save/… and I want fileInfo to also be exported with the database. Also I don't want to duplicate fileInfo inside a separate database as it does not comply with DRY, leading to easy inconsistencies. Anyway, for now I don't plan to have such a huge number of files that it is a performance problem. For now, what I did is using a writable([]) populated by getDatabaseNamesObs that I update each time I create a new file. This seems to work well enough for now, but this will not update if a file is created in another tab for instance… but not too hard to fix I guess.

from dexie.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.