Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make public method for flushing pendingWrites #97

Open
rorShaK03 opened this issue Dec 2, 2024 · 0 comments
Open

Make public method for flushing pendingWrites #97

rorShaK03 opened this issue Dec 2, 2024 · 0 comments

Comments

@rorShaK03
Copy link

rorShaK03 commented Dec 2, 2024

When we call mutation operations on entites, method pendingExecute puts them in pendingWrites and merges and executes them on transaction end. Sometimes, it leads to so big query, which is obtained as a merge result, that DB couldn't process it.

In our case we can't use immediateWrites, because of performance and we cant make separate transactions because of data consistency.

As it seems to me, there to ways to fix:

  1. (Simple) Make method flushPendingWrites public, so we can flush buffer time to time
  2. (Harder) Flush buffer automatically when it become too big (in bytes)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant