Code Monkey home page Code Monkey logo

Comments (7)

julianpaulozzi avatar julianpaulozzi commented on July 17, 2024

This is not a bug but a behavior added from version >= v0.8.4.4, see issue #36.

In this GUI once the database is opened it is always connected (never disposes until closed) and all references are always in memory and directly 2 way binded with UI.
This was done to avoid problems mainly when editing and query the data.

from litedbexplorer.

Ofiraf avatar Ofiraf commented on July 17, 2024

So unless I'm
missing something This behavior really complicated day to day management of the db.
in order to edit document in the database i can do one of 2 options
1.close the website which obviously unacceptable
2.copy the database to new location do the changes and override the original database.

from litedbexplorer.

julianpaulozzi avatar julianpaulozzi commented on July 17, 2024

I completely understanding your use case.
Just out of curiosity, how do you connect to the database? Direct on Windows Server by RDP or any other?
Anyway in the next release I will allow this in setting for use at own risk.

from litedbexplorer.

EranAvraham avatar EranAvraham commented on July 17, 2024

In my case, the DB file is located in a shared folder (website pc) and I open the file from my laptop.
Allowing this option will help a lot, because right now I can't afford myself to disable the site while the db file is opened in the explorer.
Thanks!

from litedbexplorer.

Ofiraf avatar Ofiraf commented on July 17, 2024

Im using rdp directly to the server

from litedbexplorer.

EranAvraham avatar EranAvraham commented on July 17, 2024

Think of it like a standard DB explorer, like SQL Server Management Studio. Obviously it doesn't lock the DB when you are connected.
You can just connect and dispose the connection on each query, can't you?

from litedbexplorer.

julianpaulozzi avatar julianpaulozzi commented on July 17, 2024

When using the document screen the interface is directly binded to database collection, no RPC, DTO, change tracker, transaction, active record or something else.
When editing a document is the same case, the difference is that binding is applied only on confirm dialog.
In short, the document screen is dealing with all raw database collection data directly.
In the query screen is another case and is read only.

When I changed the connection mode to exclusive it was just to avoid issues (ike editing old records, since LiteDB no has change notifications).
Before that I never had problems with my use cases, but I also never used concurrently.

As I said earlier, I have no problem with setting the connection mode as configurable for use at your own risk.

from litedbexplorer.

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.