tapsoob 0.5.5-java → 0.5.6-java

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 83850f8a3bb697fb14249fa99bf646506160bccc88ad86c0472d3e52f7efe6f6
4
- data.tar.gz: f1a44850326cd27d2ccec65af654bbe5ddac608e608189bcf7e29775b9c9435e
3
+ metadata.gz: 9b37098d58d45c753f7465e94b0a7e2845b8b3863424f21f79f34d4c6306e6ed
4
+ data.tar.gz: eb3880a0fae813c264d6b4e712e242cb03c35c3aec578f62005394805c910064
5
5
  SHA512:
6
- metadata.gz: '03048eb32c52df9e0bacc9fea8bbe91156262fb8155667fdbc94865e6cde8078c4061afab336cf1d3a5ef17cfe6ed83f055b48af919120ccb1536ec5f3828ab7'
7
- data.tar.gz: 25b4903ba64589ca1e6ace90787f9716a8223486349a4d8cc6e85954509aa492a90b0984ebcb8d3afcaf18aa0fb9c33fc5292d604908fbdac3640708feae4b0c
6
+ metadata.gz: 47af48a564d3a68b0f91b22aca89b5d6a8753080e6a7fe1b97cdc8481a4c0adac7e576029dc720889acdf54935cb66bb114d92aac85f961f157c70aa7b5c2a56
7
+ data.tar.gz: 806ef86e6d40e024b898f8e71cc97f94d2c94e77d59956d126d4152898a542400a2e9a76394ef9f1db2de1c8d330576de062c3ebc8f7d9acb3f29959b3634a25
@@ -72,7 +72,7 @@ module Tapsoob
72
72
  # keep a record of the average chunksize within the first few hundred thousand records, after chunksize
73
73
  # goes below 100 or maybe if offset is > 1000
74
74
  def fetch_rows
75
- state[:chunksize] = fetch_chunksize
75
+ #state[:chunksize] = fetch_chunksize
76
76
  ds = table.order(*order_by).limit(state[:chunksize], state[:offset])
77
77
  state[:size] = table.count
78
78
  log.debug "DataStream#fetch_rows SQL -> #{ds.sql}"
@@ -86,7 +86,7 @@ module Tapsoob
86
86
  end
87
87
 
88
88
  def fetch_file(dump_path)
89
- state[:chunksize] = fetch_chunksize
89
+ #state[:chunksize] = fetch_chunksize
90
90
  ds = JSON.parse(File.read(File.join(dump_path, "data", "#{table_name}.json")))
91
91
  state[:size] = ds["data"].size
92
92
  log.debug "DataStream#fetch_file"
@@ -104,13 +104,13 @@ module Tapsoob
104
104
  20
105
105
  end
106
106
 
107
- def fetch_chunksize
108
- chunksize = state[:chunksize]
109
- return chunksize if state[:num_chunksize] < max_chunksize_training
110
- return chunksize if state[:avg_chunksize] == 0
111
- return chunksize if state[:error]
112
- state[:avg_chunksize] > chunksize ? state[:avg_chunksize] : chunksize
113
- end
107
+ #def fetch_chunksize
108
+ # chunksize = state[:chunksize]
109
+ # return chunksize if state[:num_chunksize] < max_chunksize_training
110
+ # return chunksize if state[:avg_chunksize] == 0
111
+ # return chunksize if state[:error]
112
+ # state[:avg_chunksize] > chunksize ? state[:avg_chunksize] : chunksize
113
+ #end
114
114
 
115
115
  def update_chunksize_stats
116
116
  return if state[:num_chunksize] >= max_chunksize_training
@@ -1,4 +1,4 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module Tapsoob
3
- VERSION = "0.5.5".freeze
3
+ VERSION = "0.5.6".freeze
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tapsoob
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.5
4
+ version: 0.5.6
5
5
  platform: java
6
6
  authors:
7
7
  - Félix Bellanger
@@ -149,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
149
149
  - !ruby/object:Gem::Version
150
150
  version: '0'
151
151
  requirements: []
152
- rubygems_version: 3.1.6
152
+ rubygems_version: 3.2.29
153
153
  signing_key:
154
154
  specification_version: 4
155
155
  summary: Simple tool to import/export databases.