Skip to content

Commit 7b614f0

Browse files
committed
use bigger chunks to speed-up the process
Signed-off-by: Gaëtan Lehmann <[email protected]>
1 parent a9bfcb6 commit 7b614f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/plane_to_grist/plane_to_grist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def table_to_var(table):
200200
grist_post('tables/Issues/data/delete', [r['id'] for r in grist_get('tables/Issues/records')])
201201
grist_post('tables/IssueLabels/data/delete', [r['id'] for r in grist_get('tables/IssueLabels/records')])
202202
grist_post('tables/IssueAssignees/data/delete', [r['id'] for r in grist_get('tables/IssueAssignees/records')])
203-
for subissues in make_chunks(issues, 10):
203+
for subissues in make_chunks(issues, 100):
204204
grist_post('tables/Issues/records', {'records': [{'fields': filter_columns(issue)} for issue in subissues]})
205205
issue_label_records = [
206206
{'fields': {'issue': issue['id'], 'label': label}} for issue in subissues for label in issue['labels']

0 commit comments

Comments
 (0)