tapsoob 0.7.10 → 0.7.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/tapsoob/operation/base.rb +7 -1
- data/lib/tapsoob/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b862399e613e64e82f83b2cba746b9be378823c6390f98a079bcddecd6417c68
|
|
4
|
+
data.tar.gz: d18aa385475ba8bca8f987d55e9dff539c54922836672c0cd9306e7ebcbba52f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8af8655f524e0a9db276b7b39ec86b39c82847938c90da260c25c5037b4e9bcda8e68edc366a9909a900b62e872042dfee0ed6115c288e60be7f3a84fbdec8c1
|
|
7
|
+
data.tar.gz: b6b3e7aafe38c6f6c964b8094b7004f58a71d152c3c3dd918aa317ff4a80ebfc9894c78463fb6a57dbb134d6b0492f6f4b2c94f14217dc07cb9c8269cf817b08
|
|
@@ -126,8 +126,14 @@ module Tapsoob
|
|
|
126
126
|
opts[:stream_state] = val
|
|
127
127
|
end
|
|
128
128
|
|
|
129
|
+
def max_intra_table_workers
|
|
130
|
+
available_cpus = Etc.nprocessors rescue 4
|
|
131
|
+
[available_cpus / 2, 8, 2].max
|
|
132
|
+
end
|
|
133
|
+
|
|
129
134
|
def db
|
|
130
|
-
|
|
135
|
+
pool_size = parallel_workers * max_intra_table_workers + 2
|
|
136
|
+
@db ||= Sequel.connect(database_url, max_connections: pool_size)
|
|
131
137
|
@db.extension :schema_dumper
|
|
132
138
|
@db.loggers << Tapsoob.log if opts[:debug]
|
|
133
139
|
|
data/lib/tapsoob/version.rb
CHANGED