We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df3968f commit c65912eCopy full SHA for c65912e
1 file changed
irods/query.py
@@ -1,3 +1,5 @@
1
+import os
2
+
3
from collections import OrderedDict
4
5
from irods import MAX_SQL_ROWS
@@ -34,7 +36,7 @@
34
36
"SELECT_COUNT": 6,
35
37
}
38
-
39
+IRODS_QUERY_LIMIT = os.getenv("IRODS_QUERY_LIMIT", 500)
40
class Query:
41
42
def __init__(self, sess, *args, **kwargs):
@@ -196,7 +198,7 @@ def _kw_message(self):
196
198
return StringStringMap(dct)
197
199
200
def _message(self):
- max_rows = 500 if self._limit == -1 else self._limit
201
+ max_rows = IRODS_QUERY_LIMIT if self._limit == -1 else self._limit
202
args = {
203
"maxRows": max_rows,
204
"continueInx": self._continue_index,
0 commit comments