Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
physical
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
吴升宇
physical
Commits
9e9a9dfa
Commit
9e9a9dfa
authored
Jan 22, 2019
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update face
parent
36c917dd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
10 deletions
+5
-10
trans2es_data2es_parallel.py
trans2es/management/commands/trans2es_data2es_parallel.py
+1
-3
contrast_similar.py
trans2es/models/contrast_similar.py
+3
-6
type_info.py
trans2es/type_info.py
+1
-1
No files found.
trans2es/management/commands/trans2es_data2es_parallel.py
View file @
9e9a9dfa
...
...
@@ -107,13 +107,11 @@ class Command(BaseCommand):
query_set
=
type_info
.
queryset
logging
.
info
(
"query_set:
%
s"
%
query_set
)
logging
.
info
(
"query_set:
%
s"
%
query_set
)
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
,
type_name
=
type_name
,
...
...
trans2es/models/contrast_similar.py
View file @
9e9a9dfa
...
...
@@ -3,15 +3,12 @@
# from django.conf import settings
# from django.core.management.base import BaseCommand, CommandError
#
import traceback
#
import logging
import
traceback
import
logging
from
django.db
import
models
import
datetime
from
django.db.models
import
QuerySet
# from .topic import Topic
from
.topic
import
Topic
# manager = lambda: models.Manager().db_manager(using='face')
...
...
trans2es/type_info.py
View file @
9e9a9dfa
...
...
@@ -68,7 +68,7 @@ class TypeInfo(object):
@property
def
queryset
(
self
):
return
django
.
db
.
models
.
QuerySet
(
model
=
self
.
model
,
query
=
self
.
query
)
.
using
(
"face"
)
return
django
.
db
.
models
.
QuerySet
(
model
=
self
.
model
,
query
=
self
.
query
)
@property
def
pk_blacklist
(
self
):
...
...
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