Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-api-boot-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-api-boot-master
Commits
0ad10d7f
Commit
0ad10d7f
authored
Jun 27, 2024
by
wanglianghe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
单批次数量减少,增大连接超时时间
parent
fe7c746e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
ProductPriceServiceImpl.java
...product/service/product/impl/ProductPriceServiceImpl.java
+1
-1
application-dev.yaml
yudao-server/src/main/resources/application-dev.yaml
+2
-2
No files found.
yudao-module-product/yudao-module-product-core/src/main/java/cn/iocoder/yudao/module/product/service/product/impl/ProductPriceServiceImpl.java
View file @
0ad10d7f
...
@@ -134,7 +134,7 @@ public class ProductPriceServiceImpl extends AbstractService<ProductPriceMapper,
...
@@ -134,7 +134,7 @@ public class ProductPriceServiceImpl extends AbstractService<ProductPriceMapper,
private
static
final
String
PREFIX
=
"price_batch_update_"
;
private
static
final
String
PREFIX
=
"price_batch_update_"
;
private
static
final
Integer
DATA_THRESHOLD
=
5
0
;
private
static
final
Integer
DATA_THRESHOLD
=
3
0
;
private
static
final
String
BATCH_DEL_SCRIPT
=
"for k,v in pairs(ARGV) do \n "
+
private
static
final
String
BATCH_DEL_SCRIPT
=
"for k,v in pairs(ARGV) do \n "
+
"redis.call('del',string.gsub(v,'\"',''),'') \n"
+
"redis.call('del',string.gsub(v,'\"',''),'') \n"
+
...
...
yudao-server/src/main/resources/application-dev.yaml
View file @
0ad10d7f
...
@@ -46,13 +46,13 @@ spring:
...
@@ -46,13 +46,13 @@ spring:
datasource
:
datasource
:
master
:
master
:
name
:
jiedao
name
:
jiedao
url
:
jdbc:mysql://110.41.143.128:3306/${spring.datasource.dynamic.datasource.master.name}?useUnicode=true&useSSL=true&characterEncoding=utf8&characterSetResults=utf8&allowMultiQueries=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&autoReconnect=true&rewriteBatchedStatements=TRUE
url
:
jdbc:mysql://110.41.143.128:3306/${spring.datasource.dynamic.datasource.master.name}?useUnicode=true&useSSL=true&characterEncoding=utf8&characterSetResults=utf8&allowMultiQueries=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&autoReconnect=true&rewriteBatchedStatements=TRUE
&connectTimeout=60000
driver-class-name
:
com.mysql.cj.jdbc.Driver
driver-class-name
:
com.mysql.cj.jdbc.Driver
username
:
root
username
:
root
password
:
mysql@2024
password
:
mysql@2024
slave
:
# 模拟从库,可根据自己需要修改 # 模拟从库,可根据自己需要修改
slave
:
# 模拟从库,可根据自己需要修改 # 模拟从库,可根据自己需要修改
name
:
jiedao
name
:
jiedao
url
:
jdbc:mysql://110.41.143.128:3306/${spring.datasource.dynamic.datasource.slave.name}?useUnicode=true&useSSL=true&characterEncoding=utf8&characterSetResults=utf8&allowMultiQueries=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&autoReconnect=true&rewriteBatchedStatements=TRUE
url
:
jdbc:mysql://110.41.143.128:3306/${spring.datasource.dynamic.datasource.slave.name}?useUnicode=true&useSSL=true&characterEncoding=utf8&characterSetResults=utf8&allowMultiQueries=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&autoReconnect=true&rewriteBatchedStatements=TRUE
&connectTimeout=60000
driver-class-name
:
com.mysql.cj.jdbc.Driver
driver-class-name
:
com.mysql.cj.jdbc.Driver
username
:
root
username
:
root
password
:
mysql@2024
password
:
mysql@2024
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment