Comments (5)
Hey @gfyrag, thanks for replying!
Do you have seen you can create transactions with multiple postings? Using this instead of multiple transactions could allow you to revert all at once juste by reverting the single transaction you created at first.
Yes and we use it already in some cases. But, we can't revert a single posting of a transaction.
Can you elaborate on your use case?
We are making a wrapper around Ledger with a design that depends on this behavior to guarantee a consistent relation between transactions.
We want to be able to create related transactions atomically and have the option to revert a few of them or revert them all together.
If we use a single transaction with various postings, we wouldn't be able to do this, since I can't revert only a portion of a transaction. We will not be able to undo only e.g. tax or discount (both distinct txid
s) of a batch transaction using multiple postings as they have the same txid
.
And there are moments we would like to revert these atomic transactions all together. If we try to do so, there is a risk this operation fails and can't be completed for reasons such as conflicting transactions happening at the same time.
About the batch not being available on v2, is there any remote possibility that this behavior remains available instead of being replaced? (Adding a bulk endpoint, instead of replacing the current batch endpoint)
I ask this since I'm currently depending on this batch behavior
FYI @lucasfcnunes
from ledger.
ping @gfyrag
from ledger.
Nothing?
from ledger.
@igordreher Hello!
Can you elaborate on your use case?
Today, the batch is used mainly to avoid network latencies, not to enforce the commitment of a set of transactions.
The ledger use a single sql transaction, and thus, the whole is either committed or rollback, but this is not the main idea of the batch feature. For your information, we are working on a v2 where the batch will not be available. Instead we will probably implements a bulk request feature. With these bulk requests, you will be able to push a batch of transactions, but each one will be independent.
So, reverting a batch of transactions feels like a non sense for me.
Do you have seen you can create transactions with multiple postings? Using this instead of multiple transactions could allow you to revert all at once juste by reverting the single transaction you created at first.
from ledger.
Any update??
from ledger.
Related Issues (20)
- Filter transactions by metadata
- Filter transactions by metadata HOT 1
- This kind of code is duplicate 3 times. HOT 1
- Numscript: set_tx_meta not accepting string vars values HOT 1
- bug: Can't run example HOT 2
- initializing ledger store: open migrates\\0-init-schema: file does not exist HOT 1
- Support for back dated transactions HOT 6
- Negative values for account balance HOT 3
- Ledger creates a segment connection / client even when Segment is disabled. HOT 3
- Usage of a different stream HOT 2
- Connection pooling? HOT 1
- Duplicate key violation on id when handling concurrent requests HOT 10
- Bug: with --telemetry-enabled=false flag numary still sends data to twilio HOT 3
- Credit support? HOT 5
- Allowing unbounded overdraft does not work correctly HOT 2
- Colour of Money
- Integrate pull request preview environments
- Ledger Container with latest version that is v1.19.1 does not work HOT 3
- NumScript max operator doesn't work correctly when source account has negative balance HOT 2
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 ledger.