Skip to content

Feat: Use Fabric's 3.1 batch writes for transactions - #657

Draft
dzikowski-ai wants to merge 1 commit into
GalaChain:mainfrom
dzikowski-ai:feature/batch-writes
Draft

Feat: Use Fabric's 3.1 batch writes for transactions#657
dzikowski-ai wants to merge 1 commit into
GalaChain:mainfrom
dzikowski-ai:feature/batch-writes

Conversation

@dzikowski-ai

Copy link
Copy Markdown
Contributor

This commit implements batch writes in the flushWrites method of GalaChainStub. This is done by using the startWriteBatch and finishWriteBatch methods from the underlying fabric-shim library.

The following changes were made:

  • Added startWriteBatch and finishWriteBatch to the GalaChainStub interface.
  • Implemented startWriteBatch and finishWriteBatch in the StubCache class.
  • Modified the flushWrites method in StubCache to use the new batching methods.
  • Updated the test fixtures to include the new methods.

closes #645

This commit implements batch writes in the `flushWrites` method of `GalaChainStub`.
This is done by using the `startWriteBatch` and `finishWriteBatch` methods from the underlying `fabric-shim` library.

The following changes were made:
- Added `startWriteBatch` and `finishWriteBatch` to the `GalaChainStub` interface.
- Implemented `startWriteBatch` and `finishWriteBatch` in the `StubCache` class.
- Modified the `flushWrites` method in `StubCache` to use the new batching methods.
- Updated the test fixtures to include the new methods.
@dzikowski-ai dzikowski-ai changed the title Feat: Implement batch writes in flushWrites Aug 13, 2025
@dzikowski-ai dzikowski-ai changed the title Feat: Use Fabric's 3.1 batch writes Aug 13, 2025
@dzikowski
dzikowski marked this pull request as draft August 13, 2025 09:19
@dzikowski dzikowski added the v3 To be released in version 3 of SDK label Dec 15, 2025
@dzikowski dzikowski removed the v3 To be released in version 3 of SDK label Jan 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants