groonga-client-cli 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/doc/text/news.md +9 -0
- data/lib/groonga-client-cli/groonga-client.rb +18 -1
- data/lib/groonga-client-cli/version.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cec98629d85e45b31f3cb92744e4638d601d55b9
|
4
|
+
data.tar.gz: de5fae05fd79ac2e17f2f363cfa2099d7972be37
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16c7a7fa838785268fcb6c4a904019b61cade772c83e6434b3b19506ee96276ba418a0b15e3fb40455f304eac5d4bb115e3b488293f48fce1fd33884e17fa88d
|
7
|
+
data.tar.gz: d11a7acc1db319ca488b5a55a690348e8df19779e96209863a85764e3ab55b689efd0ca3dc54687935064ff0eb3c0c8659867020a0ee1e0d56ba19ad49467e16
|
data/doc/text/news.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# NEWS
|
2
2
|
|
3
|
+
## 1.0.3 - 2016-08-19
|
4
|
+
|
5
|
+
### Improvements
|
6
|
+
|
7
|
+
* Improved `load` command data send performance.
|
8
|
+
|
9
|
+
* Added `--chunk` option that uses `Transfer-Encoding: chunked` for
|
10
|
+
`load` command data.
|
11
|
+
|
3
12
|
## 1.0.2 - 2016-03-16
|
4
13
|
|
5
14
|
### Improvements
|
@@ -34,6 +34,8 @@ module GroongaClientCLI
|
|
34
34
|
|
35
35
|
@read_timeout = Groonga::Client::Default::READ_TIMEOUT
|
36
36
|
|
37
|
+
@chunk = false
|
38
|
+
|
37
39
|
@runner_options = {
|
38
40
|
:split_load_chunk_size => 10000,
|
39
41
|
:generate_request_id => false,
|
@@ -47,6 +49,7 @@ module GroongaClientCLI
|
|
47
49
|
:host => @host,
|
48
50
|
:port => @port,
|
49
51
|
:read_timeout => @read_timeout,
|
52
|
+
:chunk => @chunk,
|
50
53
|
:backend => :synchronous)
|
51
54
|
runner = Runner.new(@client, @runner_options)
|
52
55
|
|
@@ -124,6 +127,13 @@ module GroongaClientCLI
|
|
124
127
|
@runner_options[:generate_request_id] = boolean
|
125
128
|
end
|
126
129
|
|
130
|
+
parser.on("--[no-]chunk",
|
131
|
+
"Use \"Transfer-Encoding: chunked\" for load command.",
|
132
|
+
"HTTP only.",
|
133
|
+
"(#{@chunk})") do |boolean|
|
134
|
+
@chunk = boolean
|
135
|
+
end
|
136
|
+
|
127
137
|
command_file_paths = parser.parse(argv)
|
128
138
|
|
129
139
|
@port ||= default_port(@protocol)
|
@@ -193,7 +203,14 @@ module GroongaClientCLI
|
|
193
203
|
def consume_load_values(load_command)
|
194
204
|
return if @load_values.empty?
|
195
205
|
|
196
|
-
|
206
|
+
values_json = "["
|
207
|
+
@load_values.each_with_index do |value, i|
|
208
|
+
values_json << "," unless i.zero?
|
209
|
+
values_json << "\n"
|
210
|
+
values_json << JSON.generate(value)
|
211
|
+
end
|
212
|
+
values_json << "\n]\n"
|
213
|
+
load_command[:values] = values_json
|
197
214
|
run_command(load_command)
|
198
215
|
@load_values.clear
|
199
216
|
load_command[:values] = nil
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (C) 2015 Kouhei Sutou <kou@clear-code.com>
|
1
|
+
# Copyright (C) 2015-2016 Kouhei Sutou <kou@clear-code.com>
|
2
2
|
#
|
3
3
|
# This library is free software; you can redistribute it and/or
|
4
4
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -15,5 +15,5 @@
|
|
15
15
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
16
16
|
|
17
17
|
module GroongaClientCLI
|
18
|
-
VERSION = "1.0.
|
18
|
+
VERSION = "1.0.3"
|
19
19
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: groonga-client-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kouhei Sutou
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-08-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: groonga-client
|