-
Notifications
You must be signed in to change notification settings - Fork 34
aioredis client with buffer queue #63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report
@@ Coverage Diff @@
## master #63 +/- ##
==========================================
+ Coverage 88.54% 89.24% +0.69%
==========================================
Files 9 9
Lines 576 632 +56
==========================================
+ Hits 510 564 +54
- Misses 66 68 +2
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me, a few comments!
@@ -70,7 +70,8 @@ def process_entities(entities): | |||
@click.option('--max-token-size', '-t', default=500, help='max size of each token in megabytes (default 500, max 512)') | |||
@click.option('--index', '-i', multiple=True, help='Label:Propery on which to create an index') | |||
@click.option('--full-text-index', '-f', multiple=True, help='Label:Propery on which to create an full text search index') | |||
def bulk_insert(graph, host, port, password, user, unix_socket_path, nodes, nodes_with_label, relations, relations_with_type, separator, enforce_schema, skip_invalid_nodes, skip_invalid_edges, escapechar, quote, max_token_count, max_buffer_size, max_token_size, index, full_text_index): | |||
@click.option('--async-requests', '-A', default=3, help='amount of async requests to be executed in parallel' ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
number
instead of amount
requirements.txt
Outdated
click | ||
anyio |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these actually dependencies?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will be removed after rebase
@@ -70,7 +70,8 @@ def process_entities(entities): | |||
@click.option('--max-token-size', '-t', default=500, help='max size of each token in megabytes (default 500, max 512)') | |||
@click.option('--index', '-i', multiple=True, help='Label:Propery on which to create an index') | |||
@click.option('--full-text-index', '-f', multiple=True, help='Label:Propery on which to create an full text search index') | |||
def bulk_insert(graph, host, port, password, user, unix_socket_path, nodes, nodes_with_label, relations, relations_with_type, separator, enforce_schema, skip_invalid_nodes, skip_invalid_edges, escapechar, quote, max_token_count, max_buffer_size, max_token_size, index, full_text_index): | |||
@click.option('--async-requests', '-A', default=3, help='amount of async requests to be executed in parallel' ) | |||
async def bulk_insert(graph, host, port, password, user, unix_socket_path, nodes, nodes_with_label, relations, relations_with_type, separator, enforce_schema, skip_invalid_nodes, skip_invalid_edges, escapechar, quote, max_token_count, max_buffer_size, max_token_size, index, full_text_index, async_requests): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I understand correctly, this function is async
because otherwise it cannot make async
calls?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
correct
@DvirDukhan please move |
19b5a51
to
740b0f4
Compare
done in #75 |
No description provided.