citusdata / pg_shard

ATTENTION: pg_shard is superseded by Citus, its more powerful replacement
https://github.com/citusdata/citus
GNU Lesser General Public License v3.0
1.06k stars 63 forks source link

Update REAME #152

Closed onderkalaci closed 8 years ago

onderkalaci commented 8 years ago

This PR updates the README about increaing the INSERT throughput on pg_shard cluster. In the last pg_shard sync meeting, we decided that mentioning the concurrent INSERTs may help users to get better performance.

@jasonmp85 Feel free to change the wording&structure in the PR, my aim is to kick off this change.

jasonmp85 commented 8 years ago

Ok, so I edited this for accuracy (I used concurrent where we could, instead of parallel) and added a section about why concurrent queries are a good idea (if we have to tell our users to do this, they likely don't understand the underlying cause). I also rewrote the last bit about psql to be about applications generally (i.e. if you have an application doing writes, figure out how many copies (threads, connections, processes, actors, whatever) of it you need).

Additionally, I removed the use of find, which I consider one of the worst-designed commands in Unix. ls does just fine there… and I removed the echo and sh in favor of -t and -I%. Finally, I mentioned that only GNU split is capable of -n (BSD split doesn't have that option).

But of course the build is failing because PostgreSQL 9.5 has a new beta which changes certain outputs. I'll fix that in develop real quick and force a rebuild here.

jasonmp85 commented 8 years ago

Gah. Small subject–verb plurality bug. Fixing, then merging.