Skip to content

Conversation

@dzikowski-ai
Copy link
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 Feat: Use Fabric's 3.1 batch writes Aug 13, 2025
@dzikowski-ai dzikowski-ai changed the title Feat: Use Fabric's 3.1 batch writes Feat: Use Fabric's 3.1 batch writes for transactions 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v3 To be released in version 3 of SDK

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use batch writes from Fabric 3.1

2 participants