Giter Club home page Giter Club logo

Comments (4)

brianc avatar brianc commented on August 12, 2024

I haven't tested it much at all using binary copies, but from a protocol level using binary in the copy is a lot easier than testing all the edge cases of using binary for all your queries to postgres, so I think it should be good.

As far as ETIMEOUT do you know which stream is returning you that? It might have to do with node or the PostgreSQL server timing out idle sockets. Any way to reproduce that? I understand if there isn't - it's a pain to test things that only happen once an hour 😑

from node-pg-copy-streams.

drob avatar drob commented on August 12, 2024

I'm not positive which one it's coming from, and I haven't found a consistent repro. Multi-hour queries through node are such a smell anyway that we're trying to work around this issue by chunking the copies instead.

The real answer for us is probably binary copies. Working on some more aggressive scale tests to get confident in them and see how much they help the perf.

from node-pg-copy-streams.

jeromew avatar jeromew commented on August 12, 2024

@drob can you share an update on this 2014 issue ? This kind of bug is interesting to drill on but hard to reproduce ;-)

regarding binary, you could be interested by the https://github.com/jeromew/node-pg-copy-streams-binary module I published recently if you need to transform the data you are moving around.

from node-pg-copy-streams.

jeromew avatar jeromew commented on August 12, 2024

I close this for now (2014). you can also test 2.0.0 which has an improvement on copy-to that make it behave better wrt the node loop.

from node-pg-copy-streams.

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.