Skip to content

Commit 5972549

Browse files
author
Jongmin Kim
committed
feat: add allow_disk_use option to analyze query
1 parent 21aeeee commit 5972549

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/spaceone/core/model/mongo_model/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1309,7 +1309,8 @@ def _convert_date_value(cls, date_value, date_field_format):
13091309
@classmethod
13101310
def analyze(cls, *args, granularity=None, fields=None, select=None, group_by=None, field_group=None,
13111311
filter=None, filter_or=None, page=None, sort=None, start=None, end=None,
1312-
date_field='date', date_field_format='%Y-%m-%d', target='SECONDARY_PREFERRED', **kwargs):
1312+
date_field='date', date_field_format='%Y-%m-%d', target='SECONDARY_PREFERRED',
1313+
allow_disk_use=False, **kwargs):
13131314

13141315
if fields is None:
13151316
raise ERROR_REQUIRED_PARAMETER(key='fields')
@@ -1348,7 +1349,8 @@ def analyze(cls, *args, granularity=None, fields=None, select=None, group_by=Non
13481349
}
13491350
}
13501351
],
1351-
'target': target
1352+
'target': target,
1353+
'allow_disk_use': allow_disk_use
13521354
}
13531355

13541356
if select:

0 commit comments

Comments
 (0)