Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
岳巧源
/
jd_data_process
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d03ff2f2
authored
Oct 31, 2024
by
岳巧源
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
add tmp sql
parent
0d2df6dd
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
speed.md
tmp.sql
speed.md
0 → 100644
View file @
d03ff2f2
## vc发品优化机制
1.
京东放开pdf上传接口:https://jos.jd.com/apilistnewdetail?apiGroupId=243&apiId=20196&apiName=null
的文件大小上传2M的限制,否则猎芯本地大多数pdf无法上传。
2.
京东pdf可以通过预先上传的方式,先于vc发品。在发品时可以直接去数据库中取pdf链接。
3.
部分猎芯pdf链接为外部链接,域名为境外域名,获取或下载时容易超时,可适当调低超时时间。
4.
图片优化,图片同pdf一样,也可以预先上传京东,在发品时直接读取京东链接即可。
5.
考虑开多协程的方式,并发请求京东发品接口,但不知道京东对并发请求有没有设置限流机制。
----------------------------------------------------------------------------------------------------
预上传京东图片服务设计思路。
1.
先筛选数据,将筛选到的spuId推到队列中
2.
根据spuId,查询lie_shop_picture表,若已上传,则跳过。否则根据查到的spuId图片链接,上传京东平台。
3.
注意筛选条件,对于无法放大的图片,跳过上传环节。
\ No newline at end of file
tmp.sql
View file @
d03ff2f2
...
...
@@ -24,3 +24,7 @@ alter table lie_shop_push_sku_log modify column init_status tinyint(1) default 0
alter
table
lie_shop_push_sku_log
change
audit_failed_msg
error_msg
varchar
(
512
)
default
''
not
null
comment
'异常信息'
;
select
resp_body_msg
from
lie_shop_push_sku_log
where
apply_id
=
''
limit
1
;
alter
table
lie_shop_picture
add
column
lie_pdf
varchar
(
255
)
default
''
not
null
comment
'猎芯pdf链接'
;
alter
table
lie_shop_picture
add
column
jd_pdf
varchar
(
255
)
default
''
not
null
comment
'京东pdf链接'
;
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