GithubHelp home page GithubHelp logo

Comments (2)

dmacthedestroyer avatar dmacthedestroyer commented on June 12, 2024

I just ran into this issue as well. I was doing load testing and did a large (~800k rows) update.

I found this SO answer that implies we can't exceed 1GB for a single message (or something 🤷 I dunno what I'm doing).

Not sure what the solution is or should be (break the encoding into multiple parts?). I plan to monitor for this error and have some ugly manual intervention plan for when it occurs. I doubt I'll run into this scenario outside of my load testing exercises.

from wal2json.

eulerto avatar eulerto commented on June 12, 2024

@mohammadnaghibi @dmacthedestroyer If you are using format 1 (default), see #4 #46. You are probably have a big transaction. If you cannot avoid big transactions, use option --write-in-chunks. (Have in mind, that while the transaction is streamed the partial transaction is not a valid JSON. You should postpone the validation when it receives the whole transaction.)

However, I advise you to use format 2. It does not have the big transaction limitation.

In summary, format 1 writes the whole transaction to a single buffer (that is limited to 1 GB) and format 2 writes every change to a single buffer. Hence, format 2 might not fail for big transaction cases that used to fail in format 1.

There are still issues with a single change that needs more than 1 GB and there is no fix for it yet.

from wal2json.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.