Coder Social home page Coder Social logo

dash_database's People

Contributors

thibtrip avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

actuarial-tools

dash_database's Issues

Potential solutions for concurrent queries caveat in README.md

See first caveat listed here.

Solutions

1. Using one database file per user

Each database would take the user id for its name. There would be at least 2 problems to solve though:

  1. How to delete the database files automatically when not in use anymore? Otherwise they would just accumulate in a folder.

  2. You would have to restrict characters used for the user_id (no question marks for instance).

I am not sure this would work and how to test it properly. I think solution 2. is better.

2. Refactoring dash_database with redis

It will be hard to achieve the same level of convenience. It is apparently possible to start redis programmatically. You'll still have to install it though (to be fair this is quite a minor inconvenience).

Instead of refactoring we could create a DashDatabaseRedis class (perhaps also rename DashDatabase to DashDatabaseSqlitedict). If redis is not installed we could print some instructions to install it and reraise the usual exception when redis is not installated.


I'd be happy to hear your feedback about this issue (and about this library in general)!

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.