agrs-sequelize-sdk 1.1.1 → 1.1.3

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.
Files changed (2) hide show
  1. package/index.js +15 -19
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -31,26 +31,22 @@ class DBModels {
31
31
  // idle: 10000,
32
32
  // },
33
33
  pool: {
34
- max: 20, // Reduced to a more reasonable number
35
- min: 5, // Keep some connections alive
36
- acquire: 60000, // Increased timeout for acquiring connections
37
- idle: 20000, // Increased idle time
38
- evict: 30000, // Added eviction running time
39
- handleDisconnects: true, // Add automatic handling of disconnected connections
40
- },
41
- retry: {
42
- max: 3,
43
- timeout: 6000, // Increase timeout to 60 seconds
44
- match: [
45
- /Connection terminated/,
46
- /Connection timed out/,
47
- /Operation timeout/,
48
- /unknown timed out/,
49
- /TimeoutError/,
50
- ],
51
- backoffBase: 1000,
52
- backoffExponent: 1.5,
34
+ max: 5, // Fewer connections for debugging
35
+ min: 1,
36
+ acquire: 30000,
37
+ idle: 10000,
53
38
  },
39
+
40
+ // retry: {
41
+ // // Add retry logic for failed connections
42
+ // max: 3,
43
+ // timeout: 30000,
44
+ // match: [
45
+ // /Connection terminated/,
46
+ // /Connection timed out/,
47
+ // /Operation timeout/,
48
+ // ],
49
+ // },
54
50
  }
55
51
  );
56
52
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agrs-sequelize-sdk",
3
- "version": "1.1.1",
3
+ "version": "1.1.3",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "start": "node index.js",