Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
search_tips
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
rank
search_tips
Commits
7e3a52ff
Commit
7e3a52ff
authored
Jan 16, 2019
by
段英荣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify
parent
29378db1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
trans2es_data2es_parallel.py
trans2es/management/commands/trans2es_data2es_parallel.py
+1
-1
type_info.py
trans2es/type_info.py
+2
-2
No files found.
trans2es/management/commands/trans2es_data2es_parallel.py
View file @
7e3a52ff
...
...
@@ -72,7 +72,7 @@ class Command(BaseCommand):
slicer
=
TableSlicer
(
queryset
=
query_set
,
chunk_size
=
type_info
.
bulk_insert_chunk_size
)
for
chunk
in
slicer
.
chunks
():
job
=
Job
(
sub_index_name
=
type_name
,
sub_index_name
=
type_
info
.
name
,
type_name
=
type_name
,
chunk
=
chunk
,
)
...
...
trans2es/type_info.py
View file @
7e3a52ff
...
...
@@ -237,8 +237,8 @@ def get_type_info_map():
type_info_list
=
[
TypeInfo
(
name
=
'
doctor_tips'
,
# 医生tips
type
=
'doctor_tips'
,
name
=
'
suggest'
,
type
=
'doctor_tips'
,
# 医生tips
model
=
doctor
.
Doctor
,
query_deferred
=
lambda
:
doctor
.
Doctor
.
objects
.
all
()
.
query
,
get_data_func
=
DoctorTransfer
.
get_doctor_suggest_data_list
,
...
...
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