-
Notifications
You must be signed in to change notification settings - Fork 49
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
Missing implementation of maxBuffer
in Postgres
#68
Comments
Thanks @dennismphil it would make sense to add this. We've had good experience with the mysql implementation as we can better calibrate the ETL load with maxBuffer (instead of number of records). Do you want to take a stab at this in a PR? |
Yes I will take a stab at this. Please assign to me |
I generally like to avoid adding dependencies unless there is a good reason. Do you have an example of how the code above would look with Squel.js ? |
I agree that we should limit adding in dependencies. If it cannot be avoided, I would recommend knex over squel. Mostly because it supports more database engines and has a larger community. |
We could use Knex. I'll rewrite the existing code using knex in one file and let's see if you like the structure better. Will let @ZJONSSON / @willfarrell to veto it out if it does not look like it adds more clarity. |
I am not liking knex after working for a while for all the workarounds to make it use as a query builder. Will drop the library and use plain string concatenation itself. WIll see how to organize it better. |
Hi, I was reading about this topic. Would be interested to see this implemented wrt Postgres. How are things going? As far as I am understanding, can you confirm that the change would look like the following?: from: to (as long as MaxBuffer is not exceeded): Pros: faster performance |
Yes that's basically what the maxBuffer is for - i.e. to capture as many values as possible until a certain maximum and then send off the query |
@willfarrell @ZJONSSON
The documentation states
However the code of Postgres is missing the
maxBuffer
implementation.The text was updated successfully, but these errors were encountered: