Comments (5)
I think transaction atomicity is a very valuable feature but I don't think it's trivial to say "we'll include it". MongoDb and CouchDb have reasons for not including it.
In a database of a few terabyte and 1000s of users of the database who sync with each other in a decentralized way resolving transactions takes a lot of work.
If it would be easy to simply add transaction multi-document atomicity in MongoDb's design, MongoDb would already have done it.
I think it would be great to see discussion of tradeoffs in some design document.
from aviondb.
@ChristianKleineidam Transactions are already in our Feature List that we are working on #8
If this answers your question, feel free to close this issue 😉
from aviondb.
The feature list isn't specific about whether the transactions in the future list will be atomic for multiple documents or not. It links to MongoDb description of Transactions and MongoDb transactions that go over multiple documents aren't atomic and speaks about atomicity. Whether that atomicity is per document such as in MongoDb or over multiple documents like in Firestore is an important question.
from aviondb.
@ChristianKleineidam Good point, we should add more details to the feature list in this regard. We're planning to have transaction atomicity for multiple documents like in Firestore.
from aviondb.
Some explanation on how aviondb works under the hood in regards to operations. When a document is modified in any fashion (Whether its multiple or a single one at once). When the operation is first started, the system will search the database for the specified query. Returning a list of IDs. When the operation is broadcasted to the network it includes the operation modifier, and list of IDs to modify. This prevents conflicts of modifying all documents some of which may have not yet propagated across the entire network.
The part on preventing modification conflicts in being looked into. Something like including a StateHash in each operation can mitigate or at least detect operation conflicts.
from aviondb.
Related Issues (20)
- Support for Schema for AvionDB HOT 29
- Automated tests with GitHub Actions HOT 2
- Typescript Interfaces & ESLint Config HOT 4
- Create browser tests
- Further Typescript support HOT 1
- Sorting query results (cursor.sort())
- Typescript breaks install using require() from standard nodejs HOT 9
- Transpiling for the Typescript release (0.2.3) HOT 2
- DID-agnostic Access Control based on Ceramic 3IDs with AvionDB HOT 1
- Release v0.2.4 🚀
- Example of AvionDB with chat app? HOT 2
- TypeError: Store is not a constructor
- Progress on AvionDB pubsub? HOT 1
- [BUG]: "Database already exists" and websockets errors when reloading the page with your sample code HOT 1
- Lack of video tutorials for the implementation of AvionDB
- AvionDB.init open remote database
- [BUG]: version is undefined HOT 5
- GraphQL API for AvionDB
- project status? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aviondb.