Coder Social home page Coder Social logo

Comments (2)

joshirio avatar joshirio commented on August 24, 2024

Hi, thanks for the multiple suggestions. I'll look into them with more attention when time permits.

Basically, when you enable cloud-sync Sympytum locks the session by updating only the metadata file, called sync.meta which is very small and should get synced quickly.

As soon as you open Symphytum, even without changes, this meta file is uploaded with a flag to signal that the session has been opened by a user, so that other clients receive a warning if they open their client.

I'm not sure I understand your concerns for this issue.

As a suggestion and enhancement for future versions, it would be nice to see this "Sync Conflict Management" also for local use

What do you mean by local use? Any example of a workflow where you would hit an issue with current cloud-sync?

Background of this suggestion is the integrated cloud sync in combination with slow uploads and a bigger data.db. Because a cloud sync (local -> remote) requires the upload of the whole data.db, a slow upload speed can cause timeout - sync fails.

Just to be clear, by local sync you mean the "generic sync folder" implementation? Because if you use Dropbox/MEGA that sync metadata file is uploaded right away once the app opens. Uploading a small text file (sync.meta) takes very little even on very slow connections.

from symphytum.

tickellsthrush avatar tickellsthrush commented on August 24, 2024

Thanks for your fast and detailed reply!
Maybe my description was a bit ambiguous. My use case is as follows:

I use symphytum with enabled cloud sync, to synchronize it with a remote directory (no Dropbox/MEGA, just a directory provided by a Samba share - which probably means "generic sync folder" [unfortunately can not change the symphytum GUI from german to english]).
Sometimes I am dependent on a slow network connection (upload speed <1Mbit/sec ) and a symphytum data.db of > 5MB of size. If I change something in symphytum, obviously a sync to the remote directory is required and e.g. automatically starts on closing symphytum. This constellation frequently leads to a very long-running sync process and sometimes sync abort due to a timeout.

With "local use" I mean using symphytum with disabled cloud sync. Currently, only with cloud sync enabled, a Sync Conflict Management (via the sync.meta file) is provided.
With cloud sync disabled, a concurrent access of multiple clients (to the same portable_data directory) is currently not blocked nor detected. Therefore, the database can get corrupted. With cloud sync enabled, this is situation prevented.

My suggestion addresses a similar functionality like the sync.meta file, but also when cloud sync is disabled in symphytum.

from symphytum.

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.