@cubejs-backend/hive-driver 0.30.25 → 0.30.30

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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.30.30](https://github.com/cube-js/cube.js/compare/v0.30.29...v0.30.30) (2022-07-05)
7
+
8
+
9
+ ### Features
10
+
11
+ * centralized concurrency setting ([#4735](https://github.com/cube-js/cube.js/issues/4735)) ([1c897a1](https://github.com/cube-js/cube.js/commit/1c897a13c62049e23d26009351622b2a93c0a745))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [0.30.25](https://github.com/cube-js/cube.js/compare/v0.30.24...v0.30.25) (2022-06-16)
7
18
 
8
19
  **Note:** Version bump only for package @cubejs-backend/hive-driver
@@ -37,6 +37,13 @@ IDLFactory.extractConfig = (config) => {
37
37
  const TSaslTransport = require('./TSaslTransport');
38
38
 
39
39
  class HiveDriver extends BaseDriver {
40
+ /**
41
+ * Returns default concurrency value.
42
+ */
43
+ static getDefaultConcurrency() {
44
+ return 2;
45
+ }
46
+
40
47
  constructor(config) {
41
48
  super();
42
49
  this.config = {
@@ -95,7 +102,7 @@ class HiveDriver extends BaseDriver {
95
102
  destroy: (connection) => connection.close()
96
103
  }, {
97
104
  min: 0,
98
- max: 8,
105
+ max: this.config.maxPoolSize || 8,
99
106
  evictionRunIntervalMillis: 10000,
100
107
  softIdleTimeoutMillis: 30000,
101
108
  idleTimeoutMillis: 30000,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@cubejs-backend/hive-driver",
3
3
  "description": "Cube.js Hive database driver",
4
4
  "author": "Cube Dev, Inc.",
5
- "version": "0.30.25",
5
+ "version": "0.30.30",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/cube-js/cube.js.git",
@@ -13,7 +13,7 @@
13
13
  },
14
14
  "main": "driver/HiveDriver.js",
15
15
  "dependencies": {
16
- "@cubejs-backend/query-orchestrator": "^0.30.25",
16
+ "@cubejs-backend/query-orchestrator": "^0.30.30",
17
17
  "generic-pool": "^3.6.0",
18
18
  "jshs2": "^0.4.4",
19
19
  "sasl-plain": "^0.1.0",
@@ -25,5 +25,5 @@
25
25
  "publishConfig": {
26
26
  "access": "public"
27
27
  },
28
- "gitHead": "fcbfc6901ed8abb67729da562e830fe9f957a004"
28
+ "gitHead": "21d664e571c93dc4bde75ee744f0cdd20a590bff"
29
29
  }