Comments (4)
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.
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.
@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.
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)
- memory usage test breaking in node v16 HOT 1
- COPY errors result in hangs or delayed exceptions HOT 3
- copy-from performance with lots of chunks HOT 15
- Question: is it possible to get the line number of the file where copy failed? HOT 5
- copyFrom stream's end function does not behave as expected HOT 6
- Cannot execute multiple COPY commands within the same transaction HOT 2
- Error: Release called on client which has already been released to the pool. HOT 2
- copy-from fails when large csv file(200K+ user rows) is copied from the file to the DB HOT 17
- Very different times on table with keys vs table without keys HOT 5
- `COPY FROM` fails when upgrading from v6.0.1 to v6.0.2+ HOT 43
- Documentation doesn't work with latest `pg` HOT 6
- Idle connections with "COMMIT" HOT 2
- Something seems wrong with binary transfer for COPY ... FROM STDIN BINARY HOT 8
- Not really an issue... HOT 1
- client.query is not returning a stream HOT 10
- Row count always off by one on CopyToStreamQuery HOT 8
- Copying data failing but no error triggered HOT 23
- help needed: concurrent requests HOT 6
- copyFrom: TypeError: this.cb_ReadyForQuery is not a function HOT 5
- COPY TO with query_timeout
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-pg-copy-streams.