You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by is...@apache.org on 2021/02/04 15:41:50 UTC
[ignite-python-thin-client] 03/03: IGNITE-14127: Default sql page
size from 1 => 1024
This is an automated email from the ASF dual-hosted git repository.
isapego pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite-python-thin-client.git
commit 0f2828b521aa7bf93cfdcd5302bb77434fffe1e0
Author: Igor Sapego <ig...@gmail.com>
AuthorDate: Thu Feb 4 18:40:48 2021 +0300
IGNITE-14127: Default sql page size from 1 => 1024
This closes #13
---
pyignite/client.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/pyignite/client.py b/pyignite/client.py
index f8072d8..83cb196 100644
--- a/pyignite/client.py
+++ b/pyignite/client.py
@@ -519,7 +519,7 @@ class Client:
return cache_get_names(self.random_node)
def sql(
- self, query_str: str, page_size: int = 1, query_args: Iterable = None,
+ self, query_str: str, page_size: int = 1024, query_args: Iterable = None,
schema: Union[int, str] = 'PUBLIC',
statement_type: int = 0, distributed_joins: bool = False,
local: bool = False, replicated_only: bool = False,
@@ -531,8 +531,8 @@ class Client:
Runs an SQL query and returns its result.
:param query_str: SQL query string,
- :param page_size: (optional) cursor page size. Default is 1, which
- means that client makes one server call per row,
+ :param page_size: (optional) cursor page size. Default is 1024, which
+ means that client makes one server call per 1024 rows,
:param query_args: (optional) query arguments. List of values or
(value, type hint) tuples,
:param schema: (optional) schema for the query. Defaults to `PUBLIC`,