title: How many commands does jedis pipline exec one time by default?
body: <p>I was using jedis pipeline to insert batch of data into redis. now I face a confused problem. I want to batch a specific size and then call sync(), but it seems that the pipeline will call sync automatically every 200 records approximately. here are my codes, can anyone tell me if there exists any configurations about this ?</p>
  
  <pre><code>public class RedisClusterTest {
  public static void main(String args[]) throws IOException, InterruptedException {
      String host = args[0];
      int port = Integer.valueOf(args[1]);
      int cnt = Integer.valueOf(args[2]);
      Jedis jedis = new Jedis(host, port);
  
      Pipeline pip = jedis.pipelined();
      for(int i = 0 ; i &lt; 2000; i++) {
          pip.hset("Server", String.valueOf(i), String.valueOf(i));
          Thread.sleep(10);
      }
      // When it end loop, about 1900 records has already been insert into redis, and the last sync only made last remaining data been sync.
      pip.sync()
  </code></pre>